-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (46 loc) · 1.26 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
42
43
44
45
46
47
module.exports = {
env: {
es6: true,
node: true
},
extends: "airbnb-base",
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly"
},
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
},
rules: {
semi: 2,
"max-len": ["error", 130],
"no-unused-vars": 2,
"no-multiple-empty-lines": ["error", { max: 2 }],
// Due to NODE_PATH and absolute requires this rule must be disabled until we switch to proper requires
"import/no-unresolved": "on",
// Used in dimensions, must be double checked
"no-underscore-dangle": "off",
// Project must be fixed before enabling following rules
// | easy to fix
"no-unused-expressions": 1,
"no-empty": "off",
"prefer-destructuring": "off",
"prefer-spread": "off",
"no-use-before-define": "off",
// | potentially dangerous
"global-require": "off",
"no-param-reassign": "off",
"import/no-dynamic-require": "off",
"default-case": "off",
"no-loop-func": "off",
// | dangerous
"no-restricted-syntax": "off",
"consistent-return": "off",
"no-shadow": "off",
// | warnings - check when everything else has been fixed
"no-console": "off",
"no-constant-condition": "off",
"func-names": "off"
}
};