🚨(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.
This commit is contained in:
Anthony LC
2025-08-08 11:41:42 +02:00
parent da72a1601a
commit 0a1eaa3c40
4 changed files with 23 additions and 12 deletions

View File

@@ -1,11 +0,0 @@
module.exports = {
root: true,
extends: ['impress/jest', 'plugin:import/recommended'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
ignorePatterns: ['node_modules'],
};

View File

@@ -0,0 +1,20 @@
import { defineConfig } from '@eslint/config-helpers';
import docsPlugin from 'eslint-plugin-docs';
const eslintConfig = defineConfig([
{
files: ['**/*.ts', '**/*.mjs', '**/*.js'],
plugins: {
docs: docsPlugin,
},
extends: ['docs/next', 'docs/test'],
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
project: ['./tsconfig.json'],
},
},
},
]);
export default eslintConfig;

View File

@@ -8,7 +8,7 @@
"format-deploy": "yarn format-deploy:impress",
"format-deploy:impress": "node ./format-deploy.mjs --app=impress --output=../../apps/impress/src/i18n/translations.json",
"format-rebuild-fr:impress": "node ./rebuild-translations.mjs --language=fr --app=impress --output=../../apps/impress/src/i18n/translations.json",
"lint": "eslint --ext .js,.ts,.mjs .",
"lint": "eslint",
"test": "jest"
},
"dependencies": {

View File

@@ -16,6 +16,8 @@
},
"include": [
"**/*.ts",
"**/*.js",
"**/*.mjs"
],
"exclude": ["node_modules"]
}