This repository has been archived by the owner on Dec 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
145 lines (145 loc) · 4.9 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
139
140
141
142
143
144
145
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": [
"react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"rules": {
"semi": ["error", "never"],
"no-const-assign": "error",
"no-this-before-super": "error",
"no-undef": "error",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "error",
"no-cond-assign": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-extra-boolean-cast": "warn",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-invalid-regexp": "error",
"no-template-curly-in-string": "error",
"no-unsafe-negation": "error",
"use-isnan": "error",
"valid-jsdoc": "warn",
"array-callback-return": "error",
"no-var": "error",
"class-methods-use-this": "warn",
"complexity": ["error", 15],
"consistent-return": "warn",
"curly": ["error", "all"],
"default-case": "warn",
"dot-location": ["error", "property"],
"dot-notation": ["error", {"allowKeywords": true}],
"eqeqeq": "error",
"guard-for-in": "warn",
"no-alert": "error",
"no-caller": "error",
"no-else-return": "error",
"no-div-regex": "error",
"no-case-declarations": "error",
"no-empty-function": "warn",
"no-empty-pattern": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-fallthrough": "error",
"no-global-assign": "error",
"no-floating-decimal": "warn",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-iterator": "error",
"no-labels": "error",
"no-lone-blocks": "warn",
"no-loop-func": "error",
"no-multi-spaces": "warn",
"no-multi-str": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-new": "error",
"no-param-reassign": "warn",
"no-proto": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-useless-call": "error",
"no-useless-concat": "warn",
"no-useless-escape": "warn",
"no-useless-return": "error",
"no-void": "error",
"no-warning-comments": "warn",
"no-with": "error",
"radix": "error",
"require-await": "error",
"vars-on-top": "error",
"wrap-iife": "error",
"yoda": "error",
"no-catch-shadow": "error",
"no-delete-var": "error",
"no-label-var": "error",
"no-restricted-globals": "error",
"no-shadow-restricted-names": "error",
"no-shadow": "warn",
"no-undef-init": "warn",
"no-undefined": "warn",
"no-use-before-define": "warn",
"callback-return": "error",
"global-require": "error",
"handle-callback-err": "warn",
"no-mixed-requires": "error",
"no-new-require": "error",
"no-path-concat": "warn",
"no-process-exit": "warn",
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"brace-style": ["error", "stroustrup"],
"camelcase": "error",
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": ["error", {"after": true}],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"consistent-this": ["error", "that"],
"eol-last": "error",
"func-call-spacing": ["error", "never"],
"func-name-matching": ["warn", "always"],
"func-names": ["error", "as-needed"],
"func-style": ["warn", "declaration", {"allowArrowFunctions": true}],
"indent": ["error", 4],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing": ["error", {"afterColon": true}],
"linebreak-style": ["warn", "unix"],
"lines-around-directive": ["warn", "always"],
"max-depth": ["error", 4],
"max-len": ["error", 120],
"max-nested-callbacks": ["error", 2],
"max-params": ["error", 4],
"react/jsx-uses-vars": "error",
"object-curly-spacing": ["warn", "never"]
}
}