This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
67 lines (66 loc) · 1.57 KB
/
.eslintrc.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "script",
"ecmaFeatures": {
"jsx": false
}
},
"env": {
"browser": false,
"node": true,
"mocha": true
},
"extends": ["plugin:sonarjs/recommended", "airbnb-base"],
"plugins": [
"standard", "sonarjs", "import", "node", "promise"
],
"rules": {
"max-classes-per-file": "off",
"node/exports-style": ["error", "module.exports"],
"node/prefer-promises/fs": "error",
"node/prefer-promises/dns": "error",
"promise/catch-or-return": ["error", {"allowFinally": true, "terminationMethod": [
"catch", "asCallback"
]}],
"promise/no-return-in-finally": ["error"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"sonarjs/cognitive-complexity": ["error", 40],
"strict": [
"error",
"global"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"test/**/*.js"
]
}
],
"prefer-destructuring": "warn",
"one-var": "off",
"no-mixed-operators": "off",
"arrow-body-style": "off",
"padded-blocks": "off",
"no-plusplus": "off",
"arrow-spacing": "off",
"object-curly-spacing": "off",
"prefer-const": "warn",
"no-unused-vars": "warn",
"object-shorthand": "warn",
"no-param-reassign": "warn",
"no-console": "error",
"newline-per-chained-call": "off",
"no-continue": "off",
"no-multi-spaces": "off",
"max-len": [
"error",
140
],
"linebreak-style": [
"error",
"unix"
]
}
}