-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
51 lines (51 loc) · 1.47 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
{
"parserOptions": {
"ecmaVersion": 8
},
"env": {
"es6": true,
"node": true
},
"extends": "airbnb-base",
"rules": {
"no-console": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": "off",
"quotes": ["warn", "double"],
"semi": ["warn", "always"],
"no-param-reassign": "off",
"no-shadow": "warn",
"no-plusplus": "off",
"no-continue": "off",
"radix": ["error", "as-needed"],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/no-dynamic-require": "warn",
"no-prototype-builtins": "warn",
"no-restricted-syntax": "warn",
"no-throw-literal": "off",
"guard-for-in": "warn",
"consistent-return": ["warn", { "treatUndefinedAsUnspecified": true }],
"no-use-before-define": ["warn", { "functions": true, "classes": true }],
"no-eval": "warn",
"max-len": "off",
"no-underscore-dangle": ["error", { "allow": ["_events"] }],
"global-require": "off",
"no-nested-ternary": "warn",
"padded-blocks": ["error", { "classes": "always", "blocks": "never", "switches": "never" }],
"valid-jsdoc": ["warn", {
"requireReturn": false,
"requireReturnDescription": false,
"preferType": {
"String": "string",
"Number": "number",
"Boolean": "boolean",
"Symbol": "symbol",
"function": "Function",
"object": "Object",
"date": "Date",
"error": "Error"
}
}]
}
}