-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
38 lines (37 loc) · 968 Bytes
/
eslint.config.js
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
import airlightNode from 'eslint-config-airlight-node';
export default [
...airlightNode,
{
name: 'npm-packages-root',
languageOptions: {
parserOptions: {
project: './tsconfig.json'
}
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-implied-eval': 'warn',
'@typescript-eslint/no-this-alias': 'warn',
'@typescript-eslint/no-require-imports': 'off',
'n/no-unsupported-features/node-builtins': 'off',
'import-x/prefer-default-export': 'off',
complexity: ['error', 10]
}
},
{
files: ['**/*.test.js', '**/tests/**', '**/tests/*'],
rules: {
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-nested-callbacks': 'off'
}
},
{
files: ['**/benchmark/*'],
rules: {
'n/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
'@typescript-eslint/no-unused-vars': 'off'
}
}
];