-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
138 lines (138 loc) · 4.68 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"extends": "eslint:recommended",
"rules": {
"no-console": "off",
"no-constant-condition": "off",
"no-extra-parens": [ "warn", "all", {
"nestedBinaryExpressions": false
} ],
"strict": [ "error", "safe" ],
"array-callback-return": "warn",
"block-scoped-var": "warn",
"curly": [ "error", "all" ],
"valid-jsdoc": [ "warn", {
"requireReturn": false
} ],
"dot-location": [ "warn", "property" ],
"eqeqeq": "warn",
"guard-for-in": "warn",
"no-alert": "error",
"no-extra-label": "error",
"no-extra-bind": "error",
"no-empty-function": "warn",
"no-else-return": "warn",
"no-invalid-this": "error",
"no-iterator": "error",
"no-lone-blocks": "error",
"no-loop-func": "warn",
"no-magic-numbers": [ "warn", { "ignore": [ 0, 1 ], "ignoreArrayIndexes": true } ],
"no-multi-spaces": [ "warn" ],
"no-multi-str": "error",
"no-native-reassign": "error",
"no-new": "error",
"no-new-func": "warn",
"no-new-wrappers": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-script-url": "warn",
"no-sequences": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": [ "error", {
"allowShortCircuit": true,
"allowTernary": true
} ],
"no-useless-call": "warn",
"no-useless-concat": "error",
"no-useless-escape": "error",
"vars-on-top": "error",
"wrap-iife": [ "error", "outside" ],
"no-use-before-define": [ "error", "nofunc" ],
"no-path-concat": "error",
"array-bracket-spacing": [ "warn", "always" ],
"block-spacing": [ "warn", "always" ],
"brace-style": "warn",
"camelcase": "warn",
"comma-spacing": "warn",
"comma-style": "warn",
"computed-property-spacing": [ "warn", "always" ],
"eol-last": "warn",
"indent": [ "warn", 2, {
"SwitchCase": 1,
"VariableDeclarator": { "var": 2, "let": 2, "const": 3 }
} ],
"key-spacing": [ "warn", { "beforeColon": false, "afterColon": true } ],
"keyword-spacing": [ "warn", { "before": true, "after": true } ],
"linebreak-style": "warn",
"lines-around-comment": [ "warn", {
"beforeBlockComment": true,
"allowBlockStart": true,
"allowBlockEnd": true,
"allowObjectStart": true,
"allowObjectEnd": true,
"allowArrayStart": true,
"allowArrayEnd": true
} ],
"new-cap": "warn",
"new-parens": "error",
"newline-after-var": "warn",
"newline-before-return": "warn",
"newline-per-chained-call": [ "warn", { "ignoreChainWithDepth": 2 } ],
"no-lonely-if": "warn",
"no-multiple-empty-lines": [ "warn", { "max": 5, "maxEOF": 1 } ],
"no-spaced-func": "warn",
"no-trailing-spaces": "warn",
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "warn",
"object-curly-spacing": [ "warn", "always" ],
"object-property-newline": "warn",
"operator-assignment": [ "warn", "always" ],
"operator-linebreak": [ "warn", "after" ],
"quote-props": [ "error", "as-needed", { "keywords": true, "numbers": true } ],
"quotes": [ "warn", "single", { "avoidEscape": true, "allowTemplateLiterals": true } ],
"require-jsdoc": [ "warn", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
} ],
"semi": [ "warn", "always" ],
"semi-spacing": "warn",
"space-before-blocks": [ "warn", "always" ],
"space-before-function-paren": [ "warn", { "anonymous": "always", "named": "never" } ],
"space-in-parens": [ "warn", "always" ],
"space-infix-ops": "warn",
"space-unary-ops": [ "warn", { "words": true, "nonwords": false } ],
"spaced-comment": [ "warn", "always" ],
"arrow-body-style": [ "warn", "as-needed" ],
"arrow-parens": [ "warn", "as-needed" ],
"arrow-spacing": [ "warn", { "before": true, "after": true } ],
"generator-star-spacing": [ "warn", { "before": true, "after": false } ],
"no-duplicate-imports": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "error",
"no-var": "error",
"object-shorthand": [ "error", "always" ],
"prefer-arrow-callback": [ "error", { "allowNamedFunctions": true } ],
"prefer-const": "warn",
"prefer-reflect": "warn",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-yield": "warn",
"template-curly-spacing": [ "warn", "always" ],
"yield-star-spacing": [ "warn", { "before": true, "after": false } ]
},
"env": {
"node": true,
"es6": true
}
}