From 6fe1e14c6ea7b502ceb2edadf7d98135b5a98eed Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:13:21 +0100 Subject: [PATCH 1/3] Rename custom ESLint rule to prefer-use-i18n-polyfill --- ...8n-polyfill-rule.mjs => perfer-use-i18n-polyfill-rule.mjs} | 0 _scripts/eslint-rules/plugin.mjs | 4 ++-- eslint.config.mjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename _scripts/eslint-rules/{use-i18n-polyfill-rule.mjs => perfer-use-i18n-polyfill-rule.mjs} (100%) diff --git a/_scripts/eslint-rules/use-i18n-polyfill-rule.mjs b/_scripts/eslint-rules/perfer-use-i18n-polyfill-rule.mjs similarity index 100% rename from _scripts/eslint-rules/use-i18n-polyfill-rule.mjs rename to _scripts/eslint-rules/perfer-use-i18n-polyfill-rule.mjs diff --git a/_scripts/eslint-rules/plugin.mjs b/_scripts/eslint-rules/plugin.mjs index 1baf7ddbe4a37..fa539b5b137c8 100644 --- a/_scripts/eslint-rules/plugin.mjs +++ b/_scripts/eslint-rules/plugin.mjs @@ -1,4 +1,4 @@ -import useI18nPolyfillRule from './use-i18n-polyfill-rule.mjs' +import preferUseI18nPolyfillRule from './perfer-use-i18n-polyfill-rule.mjs' export default { meta: { @@ -6,6 +6,6 @@ export default { version: '1.0' }, rules: { - 'use-i18n-polyfill': useI18nPolyfillRule + 'prefer-use-i18n-polyfill': preferUseI18nPolyfillRule } } diff --git a/eslint.config.mjs b/eslint.config.mjs index b2c2286ea3183..854c23eefb888 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -129,7 +129,7 @@ export default [ 'jsdoc/no-bad-blocks': 'error', 'jsdoc/no-multi-asterisks': 'error', - 'freetube/use-i18n-polyfill': 'error', + 'freetube/prefer-use-i18n-polyfill': 'error', }, }, From 8ae880b98d701693a2ad294a191a583bdd5deba6 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:27:26 +0100 Subject: [PATCH 2/3] Fix typo Co-authored-by: ChunkyProgrammer <78101139+ChunkyProgrammer@users.noreply.github.com> --- _scripts/eslint-rules/plugin.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_scripts/eslint-rules/plugin.mjs b/_scripts/eslint-rules/plugin.mjs index fa539b5b137c8..451cd50836ac7 100644 --- a/_scripts/eslint-rules/plugin.mjs +++ b/_scripts/eslint-rules/plugin.mjs @@ -1,4 +1,4 @@ -import preferUseI18nPolyfillRule from './perfer-use-i18n-polyfill-rule.mjs' +import preferUseI18nPolyfillRule from './prefer-use-i18n-polyfill-rule.mjs' export default { meta: { From 71b420de2627d26da7d03c1ad61dc0734a3eadad Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:31:00 +0100 Subject: [PATCH 3/3] Fix typo in filename too --- ...e-i18n-polyfill-rule.mjs => prefer-use-i18n-polyfill-rule.mjs} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename _scripts/eslint-rules/{perfer-use-i18n-polyfill-rule.mjs => prefer-use-i18n-polyfill-rule.mjs} (100%) diff --git a/_scripts/eslint-rules/perfer-use-i18n-polyfill-rule.mjs b/_scripts/eslint-rules/prefer-use-i18n-polyfill-rule.mjs similarity index 100% rename from _scripts/eslint-rules/perfer-use-i18n-polyfill-rule.mjs rename to _scripts/eslint-rules/prefer-use-i18n-polyfill-rule.mjs