-
Notifications
You must be signed in to change notification settings - Fork 175
/
Copy path.eslintrc.json
239 lines (233 loc) · 7.52 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"parser": "babel-eslint",
"plugins": [
"react",
"no-jquery"
],
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"jquery": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"globalReturn": false
}
},
"extends": ["eslint:recommended", "plugin:react/recommended", "google"],
"rules": {
"max-len": ["error", {
"code": 80,
"tabWidth": 2,
"ignoreComments": true
}],
"no-useless-escape": "off",
"no-dupe-keys": "off",
"react/no-direct-mutation-state": "off",
"react/jsx-no-target-blank": "off",
"react/no-unknown-property": "off",
"react/no-find-dom-node": "off",
"no-empty": "off",
"no-redeclare": "off",
"no-inner-declarations": "off",
"react/no-unescaped-entities": "off",
"react/no-deprecated": "off",
"react/no-string-refs": "off",
"no-case-declarations": "off",
"no-fallthrough": "off",
"react/jsx-no-undef": "off",
"react/prop-types": "off",
"no-undef": "off",
"react/jsx-key": "off",
"no-extra-semi": "off",
"no-prototype-builtins": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"prefer-rest-params": "error",
"array-callback-return": "off",
"require-jsdoc": "error",
"no-implicit-globals": "off",
"no-invalid-this": "off",
"no-alert": "off",
"new-cap": ["error", {
"capIsNewExceptions": ["DynamicTable"]
}],
"no-console": ["warn", {
"allow": ["info", "warn", "error"]
}]
},
"overrides": [
{
"files": [
"modules/**"
],
"rules": {
"no-jquery/no-other-methods": "warn",
"no-jquery/no-other-utils": "error",
"no-jquery/no-jquery-constructor": "warn",
// methods
"no-jquery/no-animate": "error",
"no-jquery/no-bind": "error",
"no-jquery/no-class": "error",
"no-jquery/no-closest": "error",
"no-jquery/no-delegate": "error",
"no-jquery/no-each-collection": "error",
"no-jquery/no-event-shorthand": "error",
"no-jquery/no-fade": "error",
"no-jquery/no-find-collection": "error",
"no-jquery/no-has": "error",
"no-jquery/no-html": "error",
"no-jquery/no-is": "error",
"no-jquery/no-live": "error",
"no-jquery/no-load": "error",
"no-jquery/no-map-collection": "error",
"no-jquery/no-parent": "error",
"no-jquery/no-parents": "error",
"no-jquery/no-ready-shorthand": "error",
"no-jquery/no-serialize": "error",
"no-jquery/no-size": "error",
"no-jquery/no-slide": "error",
"no-jquery/no-trigger": "error",
"no-jquery/no-val": "error",
"no-jquery/no-visibility": "error",
"no-jquery/no-wrap": "error",
// Utils
"no-jquery/no-ajax": "error",
"no-jquery/no-camel-case": "error",
"no-jquery/no-contains": "error",
"no-jquery/no-deferred": "error",
"no-jquery/no-each-util": "error",
"no-jquery/no-error": "error",
"no-jquery/no-extend": "error",
"no-jquery/no-find-util": "error",
"no-jquery/no-global-eval": "error",
"no-jquery/no-grep": "error",
"no-jquery/no-hold-ready": "error",
"no-jquery/no-in-array": "error",
"no-jquery/no-is-array": "error",
"no-jquery/no-is-empty-object": "error",
"no-jquery/no-is-function": "error",
"no-jquery/no-is-numeric": "error",
"no-jquery/no-is-plain-object": "error",
"no-jquery/no-is-window": "error",
"no-jquery/no-map-util": "error",
"no-jquery/no-merge": "error",
"no-jquery/no-node-name": "error",
"no-jquery/no-noop": "error",
"no-jquery/no-now": "error",
"no-jquery/no-param": "error",
"no-jquery/no-parse-html": "error",
"no-jquery/no-parse-json": "error",
"no-jquery/no-parse-xml": "error",
"no-jquery/no-proxy": "error",
"no-jquery/no-trim": "error",
"no-jquery/no-type": "error",
"no-jquery/no-unique": "error",
"no-jquery/no-when": "error",
// Method+utils
"no-jquery/no-attr": "error",
"no-jquery/no-clone": "error",
"no-jquery/no-css": "error",
"no-jquery/no-data": "error",
"no-jquery/no-filter": "error",
"no-jquery/no-prop": "error",
"no-jquery/no-sub": "error",
"no-jquery/no-text": "error"
}
},
{
"files": [
"modules/candidate_parameters/**",
"modules/bvl_feedback/**",
"modules/dataquery/**",
"modules/dqt/**",
"modules/configuration/jsx/configuration_helper.js"
],
"rules": {
"no-jquery/no-other-utils": "warn",
// methods
"no-jquery/no-animate": "warn",
"no-jquery/no-bind": "warn",
"no-jquery/no-class": "warn",
"no-jquery/no-closest": "warn",
"no-jquery/no-delegate": "warn",
"no-jquery/no-each-collection": "warn",
"no-jquery/no-event-shorthand": "warn",
"no-jquery/no-fade": "warn",
"no-jquery/no-find-collection": "warn",
"no-jquery/no-has": "warn",
"no-jquery/no-html": "warn",
"no-jquery/no-is": "warn",
"no-jquery/no-live": "warn",
"no-jquery/no-load": "warn",
"no-jquery/no-map-collection": "warn",
"no-jquery/no-parent": "warn",
"no-jquery/no-parents": "warn",
"no-jquery/no-ready-shorthand": "warn",
"no-jquery/no-serialize": "warn",
"no-jquery/no-size": "warn",
"no-jquery/no-slide": "warn",
"no-jquery/no-trigger": "warn",
"no-jquery/no-val": "warn",
"no-jquery/no-visibility": "warn",
"no-jquery/no-wrap": "warn",
// Utils
"no-jquery/no-ajax": "warn",
"no-jquery/no-camel-case": "warn",
"no-jquery/no-contains": "warn",
"no-jquery/no-deferred": "warn",
"no-jquery/no-each-util": "warn",
"no-jquery/no-error": "warn",
"no-jquery/no-extend": "warn",
"no-jquery/no-find-util": "warn",
"no-jquery/no-global-eval": "warn",
"no-jquery/no-grep": "warn",
"no-jquery/no-hold-ready": "warn",
"no-jquery/no-in-array": "warn",
"no-jquery/no-is-array": "warn",
"no-jquery/no-is-empty-object": "warn",
"no-jquery/no-is-function": "warn",
"no-jquery/no-is-numeric": "warn",
"no-jquery/no-is-plain-object": "warn",
"no-jquery/no-is-window": "warn",
"no-jquery/no-map-util": "warn",
"no-jquery/no-merge": "warn",
"no-jquery/no-node-name": "warn",
"no-jquery/no-noop": "warn",
"no-jquery/no-now": "warn",
"no-jquery/no-param": "warn",
"no-jquery/no-parse-html": "warn",
"no-jquery/no-parse-json": "warn",
"no-jquery/no-parse-xml": "warn",
"no-jquery/no-proxy": "warn",
"no-jquery/no-trim": "warn",
"no-jquery/no-type": "warn",
"no-jquery/no-unique": "warn",
"no-jquery/no-when": "warn",
// Method+utils
"no-jquery/no-attr": "warn",
"no-jquery/no-clone": "warn",
"no-jquery/no-css": "warn",
"no-jquery/no-data": "warn",
"no-jquery/no-filter": "warn",
"no-jquery/no-prop": "warn",
"no-jquery/no-sub": "warn",
"no-jquery/no-text": "warn"
}
}
],
"globals": {
"React": true,
"ReactDOM": true,
"loris": true,
"QueryString": true,
"swal": true
}
}