-
Notifications
You must be signed in to change notification settings - Fork 77
/
.eslintrc.json
86 lines (86 loc) · 3.16 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
{
"env": {
"browser": true,
"jasmine": true,
"mocha": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"sinon": true
},
"root": true,
"rules": {
"array-bracket-spacing": ["error", "never"],
"block-scoped-var": ["error"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "_self"],
"dot-location": ["error", "property"],
"eol-last": ["error", "unix"],
"guard-for-in": ["error"],
"indent": ["error", 2, { "SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"new-cap": ["error", { "newIsCap": true, "capIsNew": false }],
"new-parens": ["error"],
"no-alert": ["error"],
"no-array-constructor": ["error"],
"no-caller": ["error"],
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-eval": ["error"],
"no-extra-bind": ["error"],
"no-floating-decimal": ["error"],
"no-implicit-globals": ["error"],
"no-implied-eval": ["error"],
"no-labels": ["error"],
"no-lone-blocks": ["error"],
"no-lonely-if": ["error"],
"no-loop-func": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"no-native-reassign": ["error"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-octal-escape": ["error"],
"no-return-assign": ["error"],
"no-script-url": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-shadow": ["error"],
"no-shadow-restricted-names": ["error"],
"no-spaced-func": ["error"],
"no-trailing-spaces": ["error"],
"no-undef-init": ["error"],
"no-unneeded-ternary": ["error"],
"no-unused-vars": ["error", { "vars": "all", "args": "all", "argsIgnorePattern": "^_" }],
"no-use-before-define": ["error", "nofunc"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-useless-escape": ["error"],
"no-void": ["error"],
"no-whitespace-before-property": ["error"],
"no-with": ["error"],
"object-curly-spacing": ["error", "always"],
"operator-assignment": ["error", "always"],
"operator-linebreak": ["error", "after"],
"padded-blocks": ["error", "never"],
"quote-props": ["error", "consistent"],
"quotes": ["error", "double"],
"radix": ["error"],
"semi": ["error", "always"],
"semi-spacing": ["error", { "before": false, "after": true }],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", { "words": true, "nonwords": false }],
"wrap-iife": ["error", "inside"]
}
}