-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
198 lines (198 loc) · 5 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:all",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended",
"prettier"
],
"globals": {
"document": true,
"require": true,
"window": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"codeFrame": false,
"ecmaVersion": 6,
"requireConfigFile": false,
"sourceType": "module"
},
"plugins": ["@babel/eslint-plugin", "import", "sonarjs", "unused-imports"],
"rules": {
"array-bracket-newline": 0,
"array-element-newline": 0,
"arrow-body-style": 0,
"arrow-parens": 0,
"arrow-spacing": 0,
"babel/no-invalid-this": 0,
"babel/object-curly-spacing": 0,
"babel/quotes": 0,
"block-spacing": 0,
"brace-style": 0,
"callback-return": [2, ["callback", "cb", "next", "success", "error"]],
"camelcase": 0,
"capitalized-comments": 0,
"class-methods-use-this": 0,
"comma-dangle": 0,
"comma-spacing": 0,
"complexity": 0,
"curly": 0,
"dot-location": 0,
"dot-notation": [
2,
{
"allowPattern": "^_"
}
],
"eol-last": 0,
"func-call-spacing": 0,
"func-names": 0,
"func-style": 0,
"function-paren-newline": 0,
"global-require": 0,
"id-length": 0,
"implicit-arrow-linebreak": 0,
"indent": 0,
"indent-legacy": 0,
"init-declarations": 0,
"jest/expect-expect": 0,
"jest/no-conditional-expect": 0,
"jest/no-done-callback": 0,
"jest/no-export": 0,
"key-spacing": 0,
"keyword-spacing": 0,
"line-comment-position": 0,
"lines-around-comment": 0,
"lines-between-class-members": 0,
"max-classes-per-file": 0,
"max-len": 0,
"max-lines": 0,
"max-lines-per-function": 0,
"max-params": 0,
"max-statements": 0,
"max-statements-per-line": 0,
"multiline-comment-style": 0,
"multiline-ternary": 0,
"new-cap": 0,
"newline-after-var": 0,
"newline-before-return": 0,
"newline-per-chained-call": 0,
"no-bitwise": [
2,
{
"allow": ["^"]
}
],
"no-confusing-arrow": 0,
"no-else-return": 0,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-extra-parens": 0,
"no-inline-comments": 0,
"no-invalid-this": 0,
"no-magic-numbers": 0,
"no-mixed-operators": 0,
"no-multi-spaces": 0,
"no-new": 0,
"no-process-env": 0,
"no-process-exit": 0,
"no-return-assign": 0,
"no-sync": 0,
"no-tabs": 0,
"no-ternary": 0,
"no-trailing-spaces": 0,
"no-undefined": 0,
"no-underscore-dangle": [
2,
{
"allowAfterThis": true
}
],
"no-unexpected-multiline": 0,
"no-unused-expressions": 0,
"no-unused-vars": [
2,
{
"argsIgnorePattern": "^next$",
"varsIgnorePattern": "^unused$"
}
],
"no-use-before-define": ["error", "nofunc"],
"no-useless-return": 0,
"no-warning-comments": 0,
"no-whitespace-before-property": 0,
"object-curly-newline": 0,
"object-curly-spacing": 0,
"object-property-newline": 0,
"object-shorthand": 0,
"one-var": [
2,
{
"initialized": "never",
"uninitialized": "always"
}
],
"operator-linebreak": 0,
"padded-blocks": 0,
"prefer-arrow-callback": 0,
"prefer-destructuring": 0,
"quote-props": 0,
"quotes": 0,
"require-jsdoc": 0,
"semi": 0,
"sonarjs/cognitive-complexity": 0,
"sonarjs/elsif-without-else": 0,
"sonarjs/max-switch-cases": 0,
"sonarjs/no-all-duplicated-branches": 2,
"sonarjs/no-collapsible-if": 2,
"sonarjs/no-collection-size-mischeck": 2,
"sonarjs/no-duplicate-string": 0,
"sonarjs/no-duplicated-branches": 2,
"sonarjs/no-element-overwrite": 2,
"sonarjs/no-empty-collection": 2,
"sonarjs/no-extra-arguments": 2,
"sonarjs/no-gratuitous-expressions": 2,
"sonarjs/no-identical-conditions": 2,
"sonarjs/no-identical-expressions": 2,
"sonarjs/no-identical-functions": 2,
"sonarjs/no-ignored-return": 2,
"sonarjs/no-inverted-boolean-check": 2,
"sonarjs/no-nested-switch": 2,
"sonarjs/no-nested-template-literals": 2,
"sonarjs/no-one-iteration-loop": 2,
"sonarjs/no-redundant-boolean": 2,
"sonarjs/no-redundant-jump": 0,
"sonarjs/no-same-line-conditional": 2,
"sonarjs/no-small-switch": 0,
"sonarjs/no-unused-collection": 2,
"sonarjs/no-use-of-empty-return-value": 2,
"sonarjs/no-useless-catch": 2,
"sonarjs/non-existent-operator": 2,
"sonarjs/prefer-immediate-return": 2,
"sonarjs/prefer-object-literal": 2,
"sonarjs/prefer-single-boolean-return": 2,
"sonarjs/prefer-while": 2,
"sort-imports": 0,
"sort-keys": 0,
"space-before-blocks": 0,
"space-before-function-paren": 0,
"space-in-parens": 0,
"space-infix-ops": 0,
"strict": [2, "never"],
"unused-imports/no-unused-imports": 2,
"valid-jsdoc": 0,
"wrap-regex": 0,
"yoda": 0
}
}