Skip to content

Commit 5801c79

Browse files
authored
infra(unicorn): text-encoding-identifier-case (#2465)
1 parent 28d3bad commit 5801c79

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.eslintrc.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ module.exports = defineConfig({
7878
'unicorn/prevent-abbreviations': 'off',
7979
'unicorn/require-array-join-separator': 'off',
8080
'unicorn/switch-case-braces': 'off',
81-
'unicorn/text-encoding-identifier-case': 'off',
8281

8382
'@typescript-eslint/array-type': [
8483
'error',
@@ -155,6 +154,12 @@ module.exports = defineConfig({
155154
'jsdoc/require-jsdoc': 'error',
156155
},
157156
},
157+
{
158+
files: ['src/locales/**/*.ts'],
159+
rules: {
160+
'unicorn/text-encoding-identifier-case': 'off',
161+
},
162+
},
158163
{
159164
files: ['test/**/*.spec.ts'],
160165
extends: ['plugin:vitest/recommended'],

scripts/generateLocales.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ async function main(): Promise<void> {
359359

360360
localizationLocales = await format(localizationLocales, prettierMdOptions);
361361

362-
let localizationContent = readFileSync(pathDocsGuideLocalization, 'utf-8');
362+
let localizationContent = readFileSync(pathDocsGuideLocalization, 'utf8');
363363
localizationContent = localizationContent.replace(
364364
/(^<!-- LOCALES-AUTO-GENERATED-START -->$).*(^<!-- LOCALES-AUTO-GENERATED-END -->$)/gms,
365365
`$1\n\n<!-- Run '${scriptCommand}' to update. -->\n\n${localizationLocales}\n$2`

0 commit comments

Comments
 (0)