Skip to content

Commit

Permalink
infra(unicorn): text-encoding-identifier-case (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Oct 12, 2023
1 parent 28d3bad commit 5801c79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion scripts/generateLocales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ async function main(): Promise<void> {

localizationLocales = await format(localizationLocales, prettierMdOptions);

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

0 comments on commit 5801c79

Please sign in to comment.