-
Notifications
You must be signed in to change notification settings - Fork 58
/
.eslintrc.json
32 lines (32 loc) · 1 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
{
"root": true,
"extends": ["airbnb-base", "prettier", "plugin:promise/recommended", "plugin:node/recommended"],
"env": {
"node": true
},
"plugins": ["promise"],
"rules": {
"global-require": "off",
"vars-on-top": "off",
"dot-notation": "off",
"guard-for-in": "off",
"func-names": "off",
"one-var": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-process-exit": "off",
"no-bitwise": "off",
"no-extend-native": "off",
"handle-callback-err": ["error", "^(err|error)$"],
"camelcase": ["error", { "properties": "never" }],
"no-use-before-define": ["error", "nofunc"],
"no-mixed-requires": ["warn", { "grouping": true }],
"id-length": ["warn", { "min": 2, "exceptions": ["i", "_"] }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"no-param-reassign": ["warn"],
"no-unused-vars": ["error", { "varsIgnorePattern": "^_.+", "argsIgnorePattern": "^_" }]
},
"parserOptions": {
"ecmaVersion": 2018
}
}