-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
41 lines (41 loc) · 1.01 KB
/
.eslintrc.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
39
40
41
module.exports = {
extends: [
'node-opinionated',
'plugin:jest/recommended'
],
plugins: ['jest'],
overrides: [
{
files: ['**/*test*/**'],
rules: {
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
'max-nested-callbacks': ['warn', 3],
'max-lines': ['warn', 200],
'sonarjs/no-duplicate-string': 'off',
'no-console': 'off',
'no-sync': 'off',
'no-undefined': 'off',
'security/detect-child-process': 'off',
'security/detect-non-literal-fs-filename': 'off',
'security/detect-non-literal-require': 'off'
}
},
{
files: ['**/*src*/**'],
rules: {
'no-console': 'off',
'no-process-exit': 'off',
'no-sync': 'off', // TBRemoved as we're not on Node12
'sonarjs/no-unused-collection': 'off',
'security/detect-child-process': 'off',
}
},
{
files: ['**/**'],
rules: {
'camelcase': 'off',
}
},
]
}