-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
72 lines (72 loc) · 3.13 KB
/
.eslintrc.js
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
{
"parserOptions": { "ecmaVersion": 12 },
"env": { "es6": true },
"extends": "eslint:recommended",
"rules": {
"no-await-in-loop": ["error"],
"no-extra-semi": ["error"],
"complexity": ["error", 30],
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
"curly": ["error"],
"dot-notation": ["error"],
"eqeqeq": ["error", "smart"],
"no-empty-function": ["error"],
"no-eq-null": ["error"],
"no-implicit-coercion": ["error"],
"no-multi-spaces": ["error"],
"no-multi-str": ["error"],
"no-return-await": ["error"],
"no-self-compare": ["error"],
"no-undef": ["off"],
"no-unused-expressions": ["error"],
"yoda": ["error"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error"],
"brace-style": ["error"],
"capitalized-comments": ["error", "always", { "ignoreConsecutiveComments": true }],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"eol-last": ["error", "always"],
"func-call-spacing": ["error", "never"],
"function-call-argument-newline": ["error", "consistent"],
"implicit-arrow-linebreak": ["error", "beside"],
"indent": ["error", 2],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "windows"],
"no-lonely-if": ["error"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-trailing-spaces": ["error"],
"no-whitespace-before-property": ["error"],
"nonblock-statement-body-position": ["error", "beside"],
"object-curly-newline": ["error", "never"],
"object-curly-spacing": ["error", "never"],
"one-var": ["error", "never"],
"one-var-declaration-per-line": ["error", "initializations"],
"operator-assignment": ["error", "never"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "double"],
"quote-props": ["error", "always"],
"semi": ["error", "never", { "beforeStatementContinuationChars": "never" }],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": ["error", "last"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error"],
"space-in-parens": ["error", "never"],
"spaced-comment": ["error", "always"],
"switch-colon-spacing": ["error"],
"template-tag-spacing": ["error", "always"],
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"arrow-parens": ["error"],
"arrow-spacing": ["error"],
"no-confusing-arrow": ["error"],
"no-duplicate-imports": ["warn"],
"no-useless-computed-key": ["error"],
"object-shorthand": ["error", "never"],
"prefer-const": ["error"]
}
}