-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
89 lines (89 loc) · 2.88 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
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
79
80
81
82
83
84
85
86
87
88
89
{
"env": {
"browser": true, // document, window
"node": true, // module, require
"jquery": true, // $
"mocha": true // describe, before, after, it, etc...
//"greasemonkey": true // GM_*
},
"globals": {
"StackExchange": false,
"PR": false
},
"extends": "eslint:recommended",
"rules": {
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": ["warn", "1tbs"],
"callback-return": "error",
"comma-spacing": "error",
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-return": "error",
"consistent-this": "error",
"curly": ["warn", "all"],
"default-case": "error",
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-style": ["warn", "declaration"],
"global-require": "error",
"handle-callback-err": "error",
"indent": ["error", 4],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"no-alert": "warn",
"no-console": "warn",
"no-bitwise": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-loop-func": "error",
"no-mixed-requires": "error",
"no-multi-spaces": "error",
"no-native-reassign": "error",
"no-octal-escape": "error",
"no-param-reassign": "error",
"no-path-concat": "error",
"no-return-assign": "error",
"no-self-compare": "error",
"no-shadow-restricted-names": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-undefined": "error",
"no-underscore-dangle": "error",
"no-unmodified-loop-condition": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "never"],
"operator-linebreak": ["error", "after"],
"quote-props": ["warn", "as-needed", {"keywords": true, "numbers": true}],
"quotes": ["warn", "single", {"avoidEscape": true}],
"semi": ["error", "always"],
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"unicode-bom": ["error", "never"],
"wrap-iife": ["error", "inside"],
"yoda": ["error", "never"]
}
}