-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
47 lines (44 loc) · 1.13 KB
/
Copy patheslint.config.js
File metadata and controls
47 lines (44 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// ESLint configuration for Agile Planner MCP Server (Wave 8)
// Compatible with ESLint v9+
const jsGlobals = require('globals');
/**
* Note: Les configs 'eslint:recommended' et 'plugin:jest/recommended' ne peuvent plus être importées directement en flat config.
* Ajoutez-les manuellement si nécessaire lors d'une future migration.
*/
module.exports = [
{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
...jsGlobals.node,
...jsGlobals.es2021,
...jsGlobals.jest
}
},
plugins: {
jest: require('eslint-plugin-jest')
},
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-console': 'off',
'max-lines': ['warn', 500],
'max-lines-per-function': ['warn', 50],
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error'
}
},
{
ignores: [
'node_modules/',
'dist/',
'examples/',
'*.md',
'todo/'
]
}
];