diff --git a/.eslintrc.js b/.eslintrc.js index ecbe2320f47..aa20f3cee2b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -78,7 +78,6 @@ module.exports = defineConfig({ 'unicorn/prevent-abbreviations': 'off', 'unicorn/require-array-join-separator': 'off', 'unicorn/switch-case-braces': 'off', - 'unicorn/text-encoding-identifier-case': 'off', '@typescript-eslint/array-type': [ 'error', @@ -155,6 +154,12 @@ module.exports = defineConfig({ 'jsdoc/require-jsdoc': 'error', }, }, + { + files: ['src/locales/**/*.ts'], + rules: { + 'unicorn/text-encoding-identifier-case': 'off', + }, + }, { files: ['test/**/*.spec.ts'], extends: ['plugin:vitest/recommended'], diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index 67d0f779c34..70e40157cba 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -359,7 +359,7 @@ async function main(): Promise { localizationLocales = await format(localizationLocales, prettierMdOptions); - let localizationContent = readFileSync(pathDocsGuideLocalization, 'utf-8'); + let localizationContent = readFileSync(pathDocsGuideLocalization, 'utf8'); localizationContent = localizationContent.replace( /(^$).*(^$)/gms, `$1\n\n\n\n${localizationLocales}\n$2`