-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
97 lines (97 loc) · 3.57 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
{
"env": { "es6": true },
"rules": {
"array-bracket-newline": "off",
"array-bracket-spacing": ["error", "never"],
"array-element-newline": ["warn", "consistent"],
"block-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"camelcase": ["error", { "properties": "always" }],
"capitalized-comments": "off",
"comma-dangle": "off",
"comma-spacing": ["error", { "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "self"],
"eol-last": ["error", "always"],
"func-call-spacing": "off",
"func-name-matching": "off",
"func-names": "off",
"func-style": "off",
"function-paren-newline": ["error", "consistent"],
"id-blacklist": "off",
"id-length": "off",
"id-match": "off",
"implicit-arrow-linebreak": "off",
"indent": ["error", "tab"],
"jsx-quotes": ["error", "prefer-single"],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"line-comment-position": "off",
"linebreak-style": ["error", "unix"],
"lines-around-comment": "off",
"lines-between-class-members": ["error", "always"],
"max-depth": ["error", { "max": 3 }],
"max-len": ["error", { "code": 80 }],
"max-lines": "off",
"max-lines-per-function": ["warn", 50],
"max-nested-callbacks": "off",
"max-params": ["warn", 5],
"max-statements": "off",
"max-statements-per-line": ["error", { "max": 1 }],
"multiline-comment-style": "off",
"multiline-ternary": ["error", "always-multiline"],
"new-cap": "off",
"new-parens": ["error"],
"newline-per-chained-call": ["warn", { "ignoreChainWithDepth": 2 }],
"no-array-constructor": ["error"],
"no-bitwise": ["error"],
"no-continue": ["error"],
"no-inline-comments": "off",
"no-lonely-if": ["error"],
"no-mixed-operators": ["error"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multi-assign": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
"no-negated-condition": "off",
"no-nested-ternary": "off",
"no-new-object": ["error"],
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-tabs": ["error", { "allowIndentationTabs": true }],
"no-ternary": "off",
"no-trailing-spaces": ["error"],
"no-underscore-dangle": "off",
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"nonblock-statement-body-position": "off",
"object-curly-newline": ["error", { "multiline": true }],
"object-curly-spacing": "off",
"object-property-newline": "off",
"one-var": "off",
"one-var-declaration-per-line": "off",
"operator-assignment": ["error", "always"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"padding-line-between-statements": "off",
"prefer-object-spread": "off",
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single", { "avoidEscape": true }],
"require-jsdoc": "off",
"semi": ["error", "never"],
"semi-spacing": ["error", { "before": false, "after": true }],
"semi-style": ["error", "last"],
"sort-keys": ["warn", "asc", { "natural": true }],
"sort-vars": "off",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": ["error"],
"space-unary-ops": ["error"],
"spaced-comment": ["error", "always"],
"switch-colon-spacing": ["error", { "after": true, "before": false }],
"template-tag-spacing": ["error", "never"],
"unicode-bom": "off",
"wrap-regex": "off"
}
}