forked from ForestAdmin/forest-express-sequelize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (38 loc) · 780 Bytes
/
.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
module.exports = {
root: true,
extends: [
'airbnb-base',
'plugin:jest/all',
'plugin:sonarjs/recommended',
],
plugins: [
'sonarjs',
],
ignorePatterns: [
'dist/**'
],
env: {
node: true,
},
rules: {
'implicit-arrow-linebreak': 0,
'import/no-extraneous-dependencies': [
'error',
{
'devDependencies': [
'.eslint-bin/*.js',
'test/**/*.js'
]
}
],
'no-param-reassign': 0,
"no-underscore-dangle": 0,
'sonarjs/cognitive-complexity': 1,
'sonarjs/no-collapsible-if': 0,
'sonarjs/no-duplicate-string': 0,
'sonarjs/no-duplicated-branches': 1,
'sonarjs/no-identical-functions': 0,
'sonarjs/no-same-line-conditional': 0
},
parser: "babel-eslint",
};