-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
60 lines (60 loc) · 1.45 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
{
"env": {
"commonjs": true,
"es2020": true,
"node": true
},
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
//custom
"callback-return": [
"error",
["done", "proceed", "next", "onwards", "callback", "cb"]
],
// "no-extra-semi": ["warn"],
"max-nested-callbacks": ["off"],
"no-unused-vars": [
"warn",
{
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)"
}
],
//end
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true
}],
"no-async-promise-executor": ["off"],
"no-plusplus": [2, {
"allowForLoopAfterthoughts": true
}],
"implicit-arrow-linebreak": ["off"],
"no-param-reassign": ["off"],
"operator-linebreak": ["off"],
"no-underscore-dangle": ["off"],
"no-prototype-builtins": ["off"], //like hasownproperty
"no-use-before-define": ["off"],
"consistent-return": ["off"],
"new-cap": ["off"], //CHECK LATER New Model
"prefer-const": ["off"],
"camelcase": ["off"],
"no-iterator": ["off"],
"no-console": ["off"],
"global-require": ["off"],
"no-restricted-syntax": ["off"],
"import/no-dynamic-require": ["off"],
"no-await-in-loop": ["off"],
"comma-dangle": [2, "always-multiline"],
"quotes": [
"warn",
"single",
{
"avoidEscape": false,
"allowTemplateLiterals": true
}
]
}
}