-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
93 lines (93 loc) · 3.77 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
90
91
92
93
{
"root": true,
"env": {
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"arrow-spacing": 2,
"block-spacing": 2,
"brace-style": 2,
"camelcase": 2,
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"consistent-return": 2,
"consistent-this": [1, "self"],
"curly": [2, "multi-or-nest"],
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": [2, "smart"],
"func-style": [2, "declaration"],
"global-require": 2,
"handle-callback-err": [2, "error"],
"indent": [2, 2, { "SwitchCase": 1 }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum", "align": "value" }],
"keyword-spacing": 2,
"max-depth": [2, 3],
"max-nested-callbacks": [2, 3],
"max-params": [2, 5],
"max-statements": [2, 30],
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
"new-parens": 2,
"no-caller": 2,
"no-catch-shadow": 2,
"no-confusing-arrow": 2,
"no-const-assign": 2,
"no-constant-condition": 2,
"no-dupe-class-members": 2,
"no-console": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-fallthrough": 2,
"no-labels": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-magic-numbers": 0,
"no-negated-condition": 2,
"no-nested-ternary": 2,
"no-new": 2,
"no-octal-escape": 2,
"no-octal": 2,
"no-param-reassign": [2, { "props": true }],
"no-process-exit": 2,
"no-proto": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow": [2, { "builtinGlobals": true }],
"no-spaced-func": 2,
"no-this-before-super": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"no-unused-expressions": 2,
"no-use-before-define": [2, "nofunc"],
"no-var": 2,
"no-void": 2,
"no-with": 2,
"object-curly-spacing": [2, "always"],
"one-var": [2, "never"],
"operator-linebreak": [2, "after"],
"quote-props": [2, "consistent-as-needed"],
"quotes": [2, "single", "avoid-escape"],
"prefer-const": 1,
"prefer-spread": 0,
"prefer-template": 2,
"radix": 2,
"require-yield": 2,
"semi": [2, "always"],
"semi-spacing": 2,
"sort-vars": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": [2, "always"],
"wrap-iife": 2,
"valid-jsdoc": 1,
"yoda": 2
}
}