-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
61 lines (47 loc) · 1.47 KB
/
.eslintrc
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
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2019
},
"rules": {
"no-prototype-builtins": 0,
"no-setter-return": 0,
"require-await": 2,
// disallow declaration of variables already declared in the outer scope
"no-shadow": 2,
// require let or const instead of var
"no-var": 2,
"max-len": ["error", 120],
// require or disallow use of semicolons instead of ASI
"semi": [2, "never"],
// require the use of === and !== except null comparison
"eqeqeq": [2, "smart"],
// specify whether double or single quotes should be used
"quotes": [2, "single", "avoid-escape"],
// require space before/after arrow function's arrow
"arrow-spacing": [2, { "before": true, "after": true }],
// suggest using of const declaration for variables that are never modified after declared
"prefer-const": 2,
// restrict what can be thrown as an exception
"no-throw-literal": 2,
// disallow Unused Expressions
"no-unused-expressions": [2, { "allowShortCircuit": true }],
// require padding inside curly braces
"object-curly-spacing": [2, "always"],
"valid-jsdoc": [2, {
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false,
"prefer": {
"return": "returns",
"String": "string",
"Number": "number",
"Function": "function"
}
}]
}
}