-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.json
76 lines (68 loc) · 2.08 KB
/
eslint.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
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
{
"ecmaFeatures": {},
"parser": "espree",
"env": {
"browser": false,
"node": true,
"amd": false,
"mocha": false,
"jasmine": true
},
"rules": {
// Rules are divided into sections from http://eslint.org/docs/rules/
// Possible errors
"no-cond-assign": 0, // regex matching is easier with statements in loop contitions
"no-comma-dangle": 0,
"no-console": 0,
"no-extra-parens": 2,
"no-extra-semi": [1],
"no-func-assign": [1],
// Best practices
"block-scoped-var": 2,
"dot-notation": 2,
"eqeqeq": [2, "smart"],
"no-else-return": 2,
"no-extend-native": [2, {"exceptions": ["Date"]}],
"no-floating-decimal": 2,
"no-native-reassign": [2, {"exceptions": ["Date", "parseInt"]}],
"no-new-func": [1],
"no-shadow": [1],
"no-unused-vars": [1, { "vars": "all", "args": "after-used" }],
"wrap-iife": [2, "inside"],
"yoda": [1, "never", { "exceptRange": true}],
// Variables
"no-use-before-define": 0,
// Node.js
"no-mixed-requires": 2,
"no-path-concat": 0,
// Stylistic issues
"array-bracket-spacing": [2, "never", {
"singleValue": false,
"objectsInArrays": false,
"arraysInArrays": false
}],
"brace-style": 2,
"camelcase": 2,
"id-length": [2, { "min": 1, "max": 40 }],
"new-cap": 2,
"no-lonely-if": 2,
"no-underscore-dangle": 0,
"object-curly-spacing": [2, "always", {
"objectsInObjects": true,
"arraysInObjects": true
}],
"operator-linebreak": [2, "after"],
"quote-props": [1, "as-needed", {
"keywords": true,
"numbers": true
}],
"spaced-comment": [2, "always"],
"space-after-keywords": 2,
"space-infix-ops": 2,
"one-var": 2,
"quotes": [2, "single"],
// Legacy
"no-bitwise": 0,
"max-len": [2, 80, 4]
}
}