-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
78 lines (70 loc) · 1.45 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"extends": "eslint-config-airbnb-base",
// Allow the following global variables
"env": {
"node": true // Node.js global variables and Node.js scoping.
},
"parserOptions": {
"ecmaFeatures": {
experimentalObjectRestSpread: true
}
},
"rules": {
"strict": [2, "safe"],
/**
* ES6
*/
"prefer-const": 0,
/**
* Variables
*/
"no-shadow": [2, {
"builtinGlobals": true
}],
"no-unused-vars": [2, {
"vars": "all",
"args": "after-used"
}],
"no-use-before-define": [2, "nofunc"],
/**
* Possible errors
*/
"comma-dangle": [2, "never"],
"no-inner-declarations": [2, "both"],
/**
* Best practices
*/
"consistent-return": 0,
"curly": 2,
"dot-notation": [2, {
"allowKeywords": true,
"allowPattern": "^[a-z]+(_[a-z]+)+$"
}],
"eqeqeq": [2, "allow-null"],
"no-eq-null": 0,
"no-redeclare": [2, {
"builtinGlobals": true
}],
"wrap-iife": [2, "inside"],
"max-len": [2, 130, 2, {"ignoreUrls": true}],
/**
* Style
*/
"indent": [2, 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
},
"SwitchCase": 1
}],
"func-names": 0,
"no-multiple-empty-lines": [2, {
"max": 1
}],
"no-extra-parens": [2, "functions"],
"one-var": 0,
"space-before-function-paren": [2, "never"],
"no-underscore-dangle": 0
}
}