forked from WFCD/warframe-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
35 lines (29 loc) · 786 Bytes
/
.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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"extends": "airbnb",
"rules": {
// indentation
"indent": [ 2, 2 ],
// spacing
"space-in-parens": [ 2, "never" ],
"template-curly-spacing": [ 2, "never" ],
"array-bracket-spacing": [ 2, "never" ],
"object-curly-spacing": [ 2, "never" ],
"computed-property-spacing": [ 2, "never" ],
"no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],
// strings
"quotes": [ 2, "single", "avoid-escape" ],
// code arrangement matter
"no-use-before-define": [ 2, { "functions": false } ],
// make it meaningful
"prefer-const": 1,
// keep it simple
"complexity": [ 1, 20 ],
"no-restricted-syntax": [0, 0]
}
}