-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.json
128 lines (128 loc) · 5.94 KB
/
eslint.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
{
"env": {"es6": true},
"rules": {
"array-bracket-newline": ["error", "consistent"],
"array-bracket-spacing": ["error", "never"],
"array-element-newline": ["error", "consistent"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"block-spacing": ["error", "always"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"comma-dangle": ["error", {"arrays": "always-multiline", "objects": "always-multiline", "imports": "always-multiline", "exports": "always-multiline", "functions": "never"}],
"comma-spacing": ["error", {"before": false, "after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"curly": ["error", "multi-line", "consistent"],
"default-case-last": ["error"],
"dot-location": ["error", "property"],
"dot-notation": ["off"],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always", {"null": "never"}],
"for-direction": ["error"],
"func-call-spacing": ["error", "always", {"allowNewlines": true}],
"func-style": ["error", "declaration", {"allowArrowFunctions": true}],
"generator-star-spacing": ["error", {"before": false, "after": true}],
"indent": ["off"],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true, "mode": "strict"}],
"keyword-spacing": ["error", {"before": true, "after": true}],
"linebreak-style": ["error", "unix"],
"max-len": ["error", {"code": 79, "ignoreUrls": true, "ignorePattern": "^ *//(# | .* :: |[.] [>.] |[.] // )"}],
"multiline-comment-style": ["off"],
"new-parens": ["error"],
"no-array-constructor": ["error"],
"no-caller": ["error"],
"no-case-declarations": ["error"],
"no-compare-neg-zero": ["error"],
"no-cond-assign": ["error", "except-parens"],
"no-const-assign": ["error"],
"no-constant-binary-expression": ["error"],
"no-dupe-args": ["error"],
"no-dupe-else-if": ["error"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-empty-character-class": ["error"],
"no-eval": ["error", {"allowIndirect": false}],
"no-extra-parens": ["off"],
"no-extra-semi": ["error"],
"no-fallthrough": ["error"],
"no-floating-decimal": ["error"],
"no-global-assign": ["error"],
"no-implicit-coercion": ["error", {"boolean": true, "number": true, "string": true, "allow": []}],
"no-invalid-regexp": ["error", {"allowConstructorFlags": ["g", "i", "m", "u", "y"]}],
"no-irregular-whitespace": ["error", {"skipComments": false}],
"no-lonely-if": ["error"],
"no-loss-of-precision": ["error"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multi-str": ["error"],
"no-multiple-empty-lines": ["error", {"max": 2, "maxBOF": 0, "maxEOF": 0}],
"no-negated-condition": ["off"],
"no-new-native-nonconstructor": ["error"],
"no-nonoctal-decimal-escape": ["error"],
"no-object-constructor": ["error"],
"no-octal": ["error"],
"no-octal-escape": ["error"],
"no-param-reassign": ["error", {"props": false}],
"no-path-concat": ["error"],
"no-plusplus": ["error"],
"no-promise-executor-return": ["error"],
"no-prototype-builtins": ["error"],
"no-regex-spaces": ["error"],
"no-self-assign": ["error"],
"no-sequences": ["error"],
"no-shadow-restricted-names": ["error"],
"no-sparse-arrays": ["error"],
"no-tabs": ["error"],
"no-throw-literal": ["error"],
"no-trailing-spaces": ["error", {"skipBlankLines": false}],
"no-undef": ["error", {"typeof": false}],
"no-unexpected-multiline": ["off"],
"no-unneeded-ternary": ["error", {"defaultAssignment": false}],
"no-unreachable": ["error"],
"no-unreachable-loop": ["error"],
"no-unsafe-negation": ["error"],
"no-unsafe-optional-chaining": ["error"],
"no-unused-vars": ["error", {"vars": "all", "args": "none", "caughtErrors": "none"}],
"no-useless-backreference": ["error"],
"no-useless-catch": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-concat": ["error"],
"no-useless-escape": ["error"],
"no-useless-rename": ["error"],
"no-var": ["error"],
"no-whitespace-before-property": ["error"],
"no-with": ["error"],
"object-curly-newline": ["error", {"consistent": true}],
"object-curly-spacing": ["error", "never"],
"object-property-newline": ["error", {"allowMultiplePropertiesPerLine": true}],
"operator-assignment": ["error", "always"],
"prefer-arrow-callback": ["error", {"allowNamedFunctions": false}],
"prefer-const": ["error", {"destructuring": "any"}],
"prefer-numeric-literals": ["error"],
"prefer-regex-literals": ["error"],
"prefer-rest-params": ["error"],
"prefer-spread": ["error"],
"prefer-template": ["off"],
"quote-props": ["error", "consistent"],
"quotes": ["error", "single", {"avoidEscape": true}],
"radix": ["error", "always"],
"semi": ["error", "always", {"omitLastInOneLineBlock": false}],
"semi-spacing": ["error", {"before": false, "after": true}],
"semi-style": ["error", "last"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "never", "named": "never"}],
"space-in-parens": ["error", "never", {"exceptions": []}],
"space-infix-ops": ["error"],
"space-unary-ops": ["error", {"words": true, "nonwords": false, "overrides": {}}],
"spaced-comment": ["error", "always", {"line": {"markers": ["#", "."], "exceptions": ["."]}}],
"strict": ["error", "safe"],
"switch-colon-spacing": ["error", {"before": false, "after": true}],
"template-curly-spacing": ["error", "never"],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"valid-typeof": ["error", {"requireStringLiterals": true}],
"wrap-iife": ["error", "outside"],
"yield-star-spacing": ["error", {"before": false, "after": true}],
"yoda": ["error", "never", {"exceptRange": true}]
}
}