-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patheslint.config.mjs
36 lines (34 loc) · 1.08 KB
/
eslint.config.mjs
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
import config from '@iobroker/eslint-config';
export default [
...config,
{
languageOptions: {
parserOptions: {
allowDefaultProject: {
allow: ['*.js', '*.mjs'],
},
tsconfigRootDir: import.meta.dirname,
project: './tsconfig.json',
// projectService: true,
},
},
},
{
// disable temporary the rule 'jsdoc/require-param' and enable 'jsdoc/require-jsdoc'
rules: {
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param': 'off',
},
},
{
ignores: [
'build-backend/**/*',
'frontend/**/*', // TODO - changes must be confirmed / reviewed by BF
'doc/**/*', // TODO - doc scripts must be reviewed anyway
'scripts/**/*', // TODO - do not change older scripts for now
// exclude config files as they cause an error from parser
'eslint.config.mjs',
'prettier.config.mjs',
],
},
];