Skip to content

Commit 4499060

Browse files
committed
infra(unicorn): text-encoding-identifier-case
1 parent 6cb5aa2 commit 4499060

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
@@ -81,7 +81,6 @@ module.exports = defineConfig({
8181
'unicorn/prevent-abbreviations': 'off',
8282
'unicorn/require-array-join-separator': 'off',
8383
'unicorn/switch-case-braces': 'off',
84-
'unicorn/text-encoding-identifier-case': 'off',
8584

8685
'@typescript-eslint/array-type': [
8786
'error',
@@ -158,6 +157,12 @@ module.exports = defineConfig({
158157
'jsdoc/require-jsdoc': 'error',
159158
},
160159
},
160+
{
161+
files: ['src/locales/**/*.ts'],
162+
rules: {
163+
'unicorn/text-encoding-identifier-case': 'off',
164+
},
165+
},
161166
{
162167
files: ['test/**/*.spec.ts'],
163168
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)