Skip to content

Commit 3939102

Browse files
committed
🚨(i18n) upgrade eslint to v9 with i18n package
We upgraded ESLint to version 9 in the i18n package, which includes several improvements and fixes. This change also involves updating the ESLint configuration files to the new format and ensuring compatibility with the latest ESLint features.
1 parent 3be81a1 commit 3939102

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

src/frontend/packages/i18n/.eslintrc.js

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { defineConfig } from '@eslint/config-helpers';
2+
import docsPlugin from 'eslint-plugin-docs';
3+
4+
const eslintConfig = defineConfig([
5+
{
6+
files: ['**/*.ts', '**/*.mjs', '**/*.js'],
7+
plugins: {
8+
docs: docsPlugin,
9+
},
10+
extends: ['docs/next', 'docs/test'],
11+
languageOptions: {
12+
parserOptions: {
13+
tsconfigRootDir: import.meta.dirname,
14+
project: ['./tsconfig.json'],
15+
},
16+
},
17+
},
18+
]);
19+
20+
export default eslintConfig;

src/frontend/packages/i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"format-deploy": "yarn format-deploy:impress",
99
"format-deploy:impress": "node ./format-deploy.mjs --app=impress --output=../../apps/impress/src/i18n/translations.json",
1010
"format-rebuild-fr:impress": "node ./rebuild-translations.mjs --language=fr --app=impress --output=../../apps/impress/src/i18n/translations.json",
11-
"lint": "eslint --ext .js,.ts,.mjs .",
11+
"lint": "eslint",
1212
"test": "jest"
1313
},
1414
"dependencies": {

src/frontend/packages/i18n/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
},
1717
"include": [
1818
"**/*.ts",
19+
"**/*.js",
20+
"**/*.mjs"
1921
],
2022
"exclude": ["node_modules"]
2123
}

0 commit comments

Comments
 (0)