The eslint-config-wikimedia package used in ContentTranslation is 0.27. Upgrade it to 0.28. From quick test, upgrade require manual fixes in many places.
Here is the log from quick run
1 | npx eslint . (master|✚2) |
---|---|
2 | |
3 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/ConfirmTopicPage.vue |
4 | 267:41 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
5 | |
6 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/ExploreLanguagesPage.vue |
7 | 189:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
8 | |
9 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/MWLanguageSelector.vue |
10 | 142:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
11 | 155:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
12 | 181:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
13 | 185:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
14 | |
15 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/SearchTopicPage.vue |
16 | 106:59 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
17 | 155:1 warning The type 'PageSearchResult' is undefined jsdoc/no-undefined-types |
18 | |
19 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/ViewTranslationPageOptions.vue |
20 | 153:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
21 | |
22 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/mintHome.js |
23 | 38:36 error Unexpected function expression prefer-arrow-callback |
24 | 58:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
25 | 89:44 error Unexpected function expression prefer-arrow-callback |
26 | |
27 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useEventLogging.js |
28 | 12:1 warning This line has a length of 208. Maximum allowed is 100 max-len |
29 | |
30 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useKeyboardNavigation.js |
31 | 19:3 error Expected no linebreak before this expression implicit-arrow-linebreak |
32 | |
33 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useLanguageSearch.js |
34 | 44:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
35 | |
36 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useMintLanguages.js |
37 | 16:41 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
38 | |
39 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useSearchResultLanguages.js |
40 | 42:29 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
41 | |
42 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useSectionTitleTranslate.js |
43 | 28:3 error Expected no linebreak before this expression implicit-arrow-linebreak |
44 | |
45 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useSiteLinksHelper.js |
46 | 31:6 error Expected no linebreak before this expression implicit-arrow-linebreak |
47 | |
48 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useState.js |
49 | 35:24 error Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>` arrow-body-style |
50 | |
51 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useTranslationInitialize.js |
52 | 11:2 error Expected no linebreak before this expression implicit-arrow-linebreak |
53 | 17:2 error Expected no linebreak before this expression implicit-arrow-linebreak |
54 | 29:55 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
55 | 32:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
56 | 86:63 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
57 | |
58 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useUrlHelper.js |
59 | 20:1 warning The type 'PageSearchResult' is undefined jsdoc/no-undefined-types |
60 | |
61 | /opt/work/mediawiki/extensions/ContentTranslation/modules/cache/mw.cx.CategoryCache.js |
62 | 33:46 error Unexpected function expression prefer-arrow-callback |
63 | |
64 | /opt/work/mediawiki/extensions/ContentTranslation/modules/cache/mw.cx.NamespaceCache.js |
65 | 31:40 error Unexpected function expression prefer-arrow-callback |
66 | 49:13 error Unexpected function expression prefer-arrow-callback |
67 | |
68 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dashboard/ext.cx.dashboard.js |
69 | 148:68 error Unexpected function expression prefer-arrow-callback |
70 | 385:50 error Unexpected function expression prefer-arrow-callback |
71 | 457:5 error Unexpected function expression prefer-arrow-callback |
72 | |
73 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dashboard/ext.cx.logevent.js |
74 | 121:48 error Unexpected function expression prefer-arrow-callback |
75 | |
76 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dashboard/ext.cx.recommendtool.client.js |
77 | 56:34 error Unexpected function expression prefer-arrow-callback |
78 | 57:69 error Unexpected function expression prefer-arrow-callback |
79 | 71:36 error Unexpected function expression prefer-arrow-callback |
80 | 80:14 error Unexpected function expression prefer-arrow-callback |
81 | |
82 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dashboard/mw.cx.DashboardList.js |
83 | 52:19 error Unexpected function expression prefer-arrow-callback |
84 | 70:53 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
85 | 143:30 error Unexpected function expression prefer-arrow-callback |
86 | 162:22 error Unexpected function expression prefer-arrow-callback |
87 | |
88 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dashboard/mw.cx.SuggestionList.js |
89 | 250:17 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
90 | 262:41 error Unexpected function expression prefer-arrow-callback |
91 | 363:74 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
92 | 454:17 error Unexpected function expression prefer-arrow-callback |
93 | 580:44 error Unexpected function expression prefer-arrow-callback |
94 | 652:70 error Unexpected function expression prefer-arrow-callback |
95 | 861:56 error Unexpected function expression prefer-arrow-callback |
96 | 1006:31 error Unexpected function expression prefer-arrow-callback |
97 | 1010:5 error Unexpected function expression prefer-arrow-callback |
98 | |
99 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dashboard/mw.cx.TranslationList.js |
100 | 66:17 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
101 | 73:41 error Unexpected function expression prefer-arrow-callback |
102 | 83:62 error Unexpected function expression prefer-arrow-callback |
103 | 131:16 error Unexpected function expression prefer-arrow-callback |
104 | 141:25 error Unexpected function expression prefer-arrow-callback |
105 | 149:12 error Unexpected function expression prefer-arrow-callback |
106 | 156:14 error Unexpected function expression prefer-arrow-callback |
107 | 405:22 error Unexpected function expression prefer-arrow-callback |
108 | 407:50 error Unexpected function expression prefer-arrow-callback |
109 | 419:15 error Unexpected function expression prefer-arrow-callback |
110 | |
111 | /opt/work/mediawiki/extensions/ContentTranslation/modules/dm/mw.cx.dm.Translation.js |
112 | 301:50 error Unexpected function expression prefer-arrow-callback |
113 | 790:43 error Unexpected function expression prefer-arrow-callback |
114 | 799:40 error Unexpected function expression prefer-arrow-callback |
115 | |
116 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.betafeature.init.js |
117 | 5:5 error Unexpected function expression prefer-arrow-callback |
118 | |
119 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.contributions.js |
120 | 32:57 error Unexpected function expression prefer-arrow-callback |
121 | 91:5 error Unexpected function expression prefer-arrow-callback |
122 | |
123 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.contributionsmenu.js |
124 | 55:47 error Unexpected function expression prefer-arrow-callback |
125 | 57:16 error Unexpected function expression prefer-arrow-callback |
126 | 168:26 error Unexpected function expression prefer-arrow-callback |
127 | 177:14 error Unexpected function expression prefer-arrow-callback |
128 | 186:5 error Unexpected function expression prefer-arrow-callback |
129 | 190:63 error Unexpected function expression prefer-arrow-callback |
130 | 198:43 error Unexpected function expression prefer-arrow-callback |
131 | |
132 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.languagesearcher/ext.cx.entrypoints.languagesearcher.init.js |
133 | 12:3 error Unexpected function expression prefer-arrow-callback |
134 | |
135 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.languagesearcher/ext.cx.entrypoints.languagesearcher.js |
136 | 24:13 error Unexpected function expression prefer-arrow-callback |
137 | 91:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
138 | 300:33 error Unexpected function expression prefer-arrow-callback |
139 | |
140 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.languagesearcher/ext.cx.entrypoints.languagesearcher.legacy.js |
141 | 25:13 error Unexpected function expression prefer-arrow-callback |
142 | 135:38 error Unexpected function expression prefer-arrow-callback |
143 | 138:36 error Unexpected function expression prefer-arrow-callback |
144 | |
145 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.mffrequentlanguages.js |
146 | 85:65 error Unexpected function expression prefer-arrow-callback |
147 | 87:13 error Unexpected function expression prefer-arrow-callback |
148 | 99:50 error Unexpected function expression prefer-arrow-callback |
149 | 108:49 error Unexpected function expression prefer-arrow-callback |
150 | 116:37 error Unexpected function expression prefer-arrow-callback |
151 | 117:35 error Unexpected function expression prefer-arrow-callback |
152 | 137:3 error Unexpected function expression prefer-arrow-callback |
153 | |
154 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.newarticle.js |
155 | 41:24 error Unexpected function expression prefer-arrow-callback |
156 | 52:23 error Unexpected function expression prefer-arrow-callback |
157 | |
158 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.newarticle.veloader.js |
159 | 10:5 error Unexpected function expression prefer-arrow-callback |
160 | 11:43 error Unexpected function expression prefer-arrow-callback |
161 | |
162 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.newbytranslation.mobile.js |
163 | 14:32 error Unexpected function expression prefer-arrow-callback |
164 | 20:15 error Unexpected function expression prefer-arrow-callback |
165 | 39:11 error Unexpected function expression prefer-arrow-callback |
166 | 42:11 error Unexpected function expression prefer-arrow-callback |
167 | 113:40 error Unexpected function expression prefer-arrow-callback |
168 | 127:48 error Unexpected function expression prefer-arrow-callback |
169 | 128:32 error Unexpected function expression prefer-arrow-callback |
170 | 138:50 error Unexpected function expression prefer-arrow-callback |
171 | 143:46 error Unexpected function expression prefer-arrow-callback |
172 | |
173 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.newbytranslation/index.js |
174 | 25:37 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
175 | 45:44 error Unexpected function expression prefer-arrow-callback |
176 | 75:13 error Unexpected function expression prefer-arrow-callback |
177 | |
178 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.recentedit/index.js |
179 | 29:11 error Unexpected function expression prefer-arrow-callback |
180 | 37:11 error Unexpected function expression prefer-arrow-callback |
181 | 42:11 error Unexpected function expression prefer-arrow-callback |
182 | 93:11 error Unexpected function expression prefer-arrow-callback |
183 | 141:68 error Unexpected function expression prefer-arrow-callback |
184 | |
185 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.recenttranslation/RecentTranslationEntrypointDialog.vue |
186 | 180:6 error Expected no linebreak before this expression implicit-arrow-linebreak |
187 | |
188 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.recenttranslation/index.js |
189 | 56:46 error Unexpected function expression prefer-arrow-callback |
190 | |
191 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.uls.relevantlanguages.js |
192 | 60:52 error Unexpected function expression prefer-arrow-callback |
193 | 69:37 error Unexpected function expression prefer-arrow-callback |
194 | 106:13 error Unexpected function expression prefer-arrow-callback |
195 | 118:3 error Unexpected function expression prefer-arrow-callback |
196 | 186:38 error Unexpected function expression prefer-arrow-callback |
197 | |
198 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.interlanguagelink.init.js |
199 | 46:57 error Unexpected function expression prefer-arrow-callback |
200 | 67:41 error Unexpected function expression prefer-arrow-callback |
201 | 81:62 error Unexpected function expression prefer-arrow-callback |
202 | 85:33 error Unexpected function expression prefer-arrow-callback |
203 | 105:54 error Unexpected function expression prefer-arrow-callback |
204 | |
205 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.interlanguagelink.js |
206 | 49:32 error Unexpected function expression prefer-arrow-callback |
207 | 124:30 error Unexpected function expression prefer-arrow-callback |
208 | |
209 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.uls.quick.actions.js |
210 | 48:58 error Unexpected function expression prefer-arrow-callback |
211 | 69:61 error Unexpected function expression prefer-arrow-callback |
212 | |
213 | /opt/work/mediawiki/extensions/ContentTranslation/modules/eventlogging/ext.cx.eventlogging.campaigns.js |
214 | 11:5 error Unexpected function expression prefer-arrow-callback |
215 | 12:38 error Unexpected function expression prefer-arrow-callback |
216 | |
217 | /opt/work/mediawiki/extensions/ContentTranslation/modules/eventlogging/ext.cx.eventlogging.translation.js |
218 | 107:5 error Unexpected function expression prefer-arrow-callback |
219 | |
220 | /opt/work/mediawiki/extensions/ContentTranslation/modules/eventlogging/legacy/ext.cx.eventlogging.translation.js |
221 | 143:5 error Unexpected function expression prefer-arrow-callback |
222 | |
223 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.MachineTranslationManager.js |
224 | 57:44 error Unexpected function expression prefer-arrow-callback |
225 | 76:3 error Unexpected function expression prefer-arrow-callback |
226 | 79:3 error Unexpected function expression prefer-arrow-callback |
227 | 97:3 error Unexpected function expression prefer-arrow-callback |
228 | 104:3 error Unexpected function expression prefer-arrow-callback |
229 | 118:3 error Unexpected function expression prefer-arrow-callback |
230 | 121:3 error Unexpected function expression prefer-arrow-callback |
231 | |
232 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.MachineTranslationService.js |
233 | 66:34 error Unexpected function expression prefer-arrow-callback |
234 | 103:41 error Unexpected function expression prefer-arrow-callback |
235 | 104:28 error Unexpected function expression prefer-arrow-callback |
236 | 111:41 error Unexpected function expression prefer-arrow-callback |
237 | 129:10 error Unexpected function expression prefer-arrow-callback |
238 | 151:42 error Unexpected function expression prefer-arrow-callback |
239 | 171:4 error Unexpected function expression prefer-arrow-callback |
240 | 178:4 error Unexpected function expression prefer-arrow-callback |
241 | 191:33 error Unexpected function expression prefer-arrow-callback |
242 | 231:33 error Unexpected function expression prefer-arrow-callback |
243 | |
244 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.TargetArticle.js |
245 | 69:99 error Unexpected function expression prefer-arrow-callback |
246 | 80:68 error Unexpected function expression prefer-arrow-callback |
247 | 86:55 error Unexpected function expression prefer-arrow-callback |
248 | 94:67 error Unexpected function expression prefer-arrow-callback |
249 | 106:86 error Unexpected function expression prefer-arrow-callback |
250 | 115:69 error Unexpected function expression prefer-arrow-callback |
251 | 121:95 error Unexpected function expression prefer-arrow-callback |
252 | 139:32 error Unexpected function expression prefer-arrow-callback |
253 | 156:72 error Unexpected function expression prefer-arrow-callback |
254 | 162:19 error Unexpected function expression prefer-arrow-callback |
255 | 172:33 error Unexpected function expression prefer-arrow-callback |
256 | 488:55 error Unexpected function expression prefer-arrow-callback |
257 | 512:59 error Unexpected function expression prefer-arrow-callback |
258 | 544:29 error Unexpected function expression prefer-arrow-callback |
259 | 554:20 error Unexpected function expression prefer-arrow-callback |
260 | |
261 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.TranslationController.js |
262 | 458:38 error Unexpected function expression prefer-arrow-callback |
263 | 480:50 error Unexpected function expression prefer-arrow-callback |
264 | 579:52 error Unexpected function expression prefer-arrow-callback |
265 | 767:54 error Unexpected function expression prefer-arrow-callback |
266 | 891:12 error Unexpected function expression prefer-arrow-callback |
267 | |
268 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.TranslationTracker.js |
269 | 99:42 error Unexpected function expression prefer-arrow-callback |
270 | 322:16 error Unexpected function expression prefer-arrow-callback |
271 | 343:22 error Unexpected function expression prefer-arrow-callback |
272 | 358:32 error Unexpected function expression prefer-arrow-callback |
273 | 360:11 error Unexpected function expression prefer-arrow-callback |
274 | 655:53 error Unexpected function expression prefer-arrow-callback |
275 | |
276 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.init.Translation.js |
277 | 485:19 error Unexpected function expression prefer-arrow-callback |
278 | 501:64 error Unexpected function expression prefer-arrow-callback |
279 | |
280 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.init.js |
281 | 27:4 error Unexpected function expression prefer-arrow-callback |
282 | 30:4 error Unexpected function expression prefer-arrow-callback |
283 | 67:78 error Unexpected function expression prefer-arrow-callback |
284 | |
285 | /opt/work/mediawiki/extensions/ContentTranslation/modules/publish/ext.cx.wikibase.link.js |
286 | 52:11 error Unexpected function expression prefer-arrow-callback |
287 | 61:11 error Unexpected function expression prefer-arrow-callback |
288 | 74:5 error Unexpected function expression prefer-arrow-callback |
289 | |
290 | /opt/work/mediawiki/extensions/ContentTranslation/modules/source/mw.cx.SelectedSourcePage.js |
291 | 25:16 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
292 | 209:44 error Unexpected function expression prefer-arrow-callback |
293 | 249:19 error Unexpected function expression prefer-arrow-callback |
294 | 296:62 error Unexpected function expression prefer-arrow-callback |
295 | 298:25 error Unexpected function expression prefer-arrow-callback |
296 | 341:17 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
297 | 364:46 error Unexpected function expression prefer-arrow-callback |
298 | 401:25 error Unexpected function expression prefer-arrow-callback |
299 | 426:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
300 | 434:33 error Unexpected function expression prefer-arrow-callback |
301 | 449:5 error Unexpected function expression prefer-arrow-callback |
302 | 484:10 error Unexpected function expression prefer-arrow-callback |
303 | 509:51 error Unexpected function expression prefer-arrow-callback |
304 | 527:10 error Unexpected function expression prefer-arrow-callback |
305 | 563:10 error Unexpected function expression prefer-arrow-callback |
306 | |
307 | /opt/work/mediawiki/extensions/ContentTranslation/modules/source/mw.cx.SourcePageSelector.js |
308 | 102:33 error Unexpected function expression prefer-arrow-callback |
309 | 287:12 error Unexpected function expression prefer-arrow-callback |
310 | |
311 | /opt/work/mediawiki/extensions/ContentTranslation/modules/stats/ext.cx.stats.js |
312 | 35:11 error Unexpected function expression prefer-arrow-callback |
313 | 591:13 error Unexpected function expression prefer-arrow-callback |
314 | 600:44 error Unexpected function expression prefer-arrow-callback |
315 | 600:55 warning 'data' is already declared in the upper scope on line 599 column 9 no-shadow |
316 | 612:44 error Unexpected function expression prefer-arrow-callback |
317 | 612:55 warning 'data' is already declared in the upper scope on line 599 column 9 no-shadow |
318 | 624:38 error Unexpected function expression prefer-arrow-callback |
319 | 624:49 warning 'data' is already declared in the upper scope on line 599 column 9 no-shadow |
320 | 643:47 error Unexpected function expression prefer-arrow-callback |
321 | 643:58 warning 'data' is already declared in the upper scope on line 642 column 9 no-shadow |
322 | 655:47 error Unexpected function expression prefer-arrow-callback |
323 | 655:58 warning 'data' is already declared in the upper scope on line 642 column 9 no-shadow |
324 | 667:41 error Unexpected function expression prefer-arrow-callback |
325 | 667:52 warning 'data' is already declared in the upper scope on line 642 column 9 no-shadow |
326 | 679:44 error Unexpected function expression prefer-arrow-callback |
327 | 679:55 warning 'data' is already declared in the upper scope on line 642 column 9 no-shadow |
328 | 699:44 error Unexpected function expression prefer-arrow-callback |
329 | 699:55 warning 'data' is already declared in the upper scope on line 698 column 9 no-shadow |
330 | 708:44 error Unexpected function expression prefer-arrow-callback |
331 | 708:55 warning 'data' is already declared in the upper scope on line 698 column 9 no-shadow |
332 | 717:38 error Unexpected function expression prefer-arrow-callback |
333 | 717:49 warning 'data' is already declared in the upper scope on line 698 column 9 no-shadow |
334 | 737:47 error Unexpected function expression prefer-arrow-callback |
335 | 737:58 warning 'data' is already declared in the upper scope on line 736 column 9 no-shadow |
336 | 746:47 error Unexpected function expression prefer-arrow-callback |
337 | 746:58 warning 'data' is already declared in the upper scope on line 736 column 9 no-shadow |
338 | 755:41 error Unexpected function expression prefer-arrow-callback |
339 | 755:52 warning 'data' is already declared in the upper scope on line 736 column 9 no-shadow |
340 | 764:44 error Unexpected function expression prefer-arrow-callback |
341 | 764:55 warning 'data' is already declared in the upper scope on line 736 column 9 no-shadow |
342 | 837:5 error Unexpected function expression prefer-arrow-callback |
343 | |
344 | /opt/work/mediawiki/extensions/ContentTranslation/modules/tools/ext.cx.tools.validator.js |
345 | 34:13 error Unexpected function expression prefer-arrow-callback |
346 | 67:13 error Unexpected function expression prefer-arrow-callback |
347 | 71:50 error Unexpected function expression prefer-arrow-callback |
348 | |
349 | /opt/work/mediawiki/extensions/ContentTranslation/modules/tools/mw.cx.tools.IssueTrackingTool.js |
350 | 508:26 error Unexpected function expression prefer-arrow-callback |
351 | 524:18 error Unexpected function expression prefer-arrow-callback |
352 | 535:18 error Unexpected function expression prefer-arrow-callback |
353 | |
354 | /opt/work/mediawiki/extensions/ContentTranslation/modules/translation/ext.cx.translation.conflict.js |
355 | 34:20 error Unexpected function expression prefer-arrow-callback |
356 | 45:5 error Unexpected function expression prefer-arrow-callback |
357 | 46:48 error Unexpected function expression prefer-arrow-callback |
358 | |
359 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.ArticleColumn.js |
360 | 20:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
361 | |
362 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.Categories.js |
363 | 129:49 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
364 | 245:57 error Unexpected function expression prefer-arrow-callback |
365 | |
366 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.Infobar.js |
367 | 9:16 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
368 | |
369 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.LanguageFilter.js |
370 | 91:27 error Unexpected function expression prefer-arrow-callback |
371 | 360:41 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
372 | 372:52 error Unexpected function expression prefer-arrow-callback |
373 | 401:41 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
374 | 413:52 error Unexpected function expression prefer-arrow-callback |
375 | |
376 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.LoginDialog.js |
377 | 92:10 error Unexpected function expression prefer-arrow-callback |
378 | |
379 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.ToolsColumn.js |
380 | 38:16 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
381 | 59:5 error Unexpected function expression prefer-arrow-callback |
382 | |
383 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.TranslationHeader.js |
384 | 18:47 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
385 | |
386 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/mw.cx.ui.TranslationView.js |
387 | 35:54 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
388 | 42:57 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
389 | 51:45 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
390 | 59:16 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
391 | 204:57 error Unexpected function expression prefer-arrow-callback |
392 | |
393 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.CategoryInputWidget.js |
394 | 30:65 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
395 | 34:71 error Unexpected function expression prefer-arrow-callback |
396 | |
397 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.CategoryMultiselectWidget.js |
398 | 64:28 error Unexpected function expression prefer-arrow-callback |
399 | 80:32 error Unexpected function expression prefer-arrow-callback |
400 | 99:45 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
401 | |
402 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.MessageWidget.js |
403 | 15:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
404 | 65:19 error Unexpected function expression prefer-arrow-callback |
405 | |
406 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.PageSelectorWidget.js |
407 | 22:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
408 | 217:31 warning 'pages' is already declared in the upper scope on line 182 column 71 no-shadow |
409 | 293:10 error Unexpected function expression prefer-arrow-callback |
410 | 301:12 error Unexpected function expression prefer-arrow-callback |
411 | 303:14 error Unexpected function expression prefer-arrow-callback |
412 | 351:12 error Unexpected function expression prefer-arrow-callback |
413 | 364:53 error Unexpected function expression prefer-arrow-callback |
414 | 373:13 error Unexpected function expression prefer-arrow-callback |
415 | 376:5 error Unexpected function expression prefer-arrow-callback |
416 | 399:33 error Unexpected function expression prefer-arrow-callback |
417 | 406:24 error Unexpected function expression prefer-arrow-callback |
418 | 409:5 error Unexpected function expression prefer-arrow-callback |
419 | 426:34 error Unexpected function expression prefer-arrow-callback |
420 | |
421 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.PageTitleWidget.js |
422 | 15:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
423 | 83:58 error Unexpected function expression prefer-arrow-callback |
424 | 137:29 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
425 | |
426 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.SectionTitleWidget.js |
427 | 15:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
428 | |
429 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.TranslationIssueWidget.js |
430 | 13:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
431 | 87:29 error Unexpected function expression prefer-arrow-callback |
432 | |
433 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.TranslationToolWidget.js |
434 | 15:11 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
435 | |
436 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ce/mixins/ve.ce.CXPendingNode.js |
437 | 52:15 error Unexpected function expression prefer-arrow-callback |
438 | |
439 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/dm/mixins/ve.dm.CXLintableNode.js |
440 | 33:40 error Unexpected function expression prefer-arrow-callback |
441 | 51:40 error Unexpected function expression prefer-arrow-callback |
442 | 52:3 warning Unused eslint-disable directive (no problems were reported from 'security/detect-non-literal-regexp') |
443 | 54:11 error Unexpected function expression prefer-arrow-callback |
444 | 175:43 error Unexpected function expression prefer-arrow-callback |
445 | |
446 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/dm/ve.dm.CXSectionNode.js |
447 | 82:15 error Unexpected function expression prefer-arrow-callback |
448 | |
449 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/dm/ve.dm.CXTransclusionNode.js |
450 | 314:45 error Unexpected function expression prefer-arrow-callback |
451 | |
452 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/init/ve.init.mw.CXTarget.js |
453 | 20:25 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
454 | 26:25 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
455 | 230:35 error Unexpected function expression prefer-arrow-callback |
456 | 385:14 error Unexpected function expression prefer-arrow-callback |
457 | 461:29 error Unexpected function expression prefer-arrow-callback |
458 | 473:44 error Unexpected function expression prefer-arrow-callback |
459 | 640:74 error Unexpected function expression prefer-arrow-callback |
460 | 674:51 error Unexpected function expression prefer-arrow-callback |
461 | 718:37 error Unexpected function expression prefer-arrow-callback |
462 | 806:46 error Unexpected function expression prefer-arrow-callback |
463 | 808:25 error Unexpected function expression prefer-arrow-callback |
464 | 810:57 error Unexpected function expression prefer-arrow-callback |
465 | 813:27 error Unexpected function expression prefer-arrow-callback |
466 | 983:2 error Expected no linebreak before this expression implicit-arrow-linebreak |
467 | 997:51 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
468 | 999:3 error Expected no linebreak before this expression implicit-arrow-linebreak |
469 | 1101:75 error Unexpected function expression prefer-arrow-callback |
470 | 1116:47 error Unexpected function expression prefer-arrow-callback |
471 | |
472 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/actions/ve.ui.CXTranslationAction.js |
473 | 74:12 error Unexpected function expression prefer-arrow-callback |
474 | 81:13 error Unexpected function expression prefer-arrow-callback |
475 | |
476 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/tools/ve.ui.CXSaveMTPreferenceTool.js |
477 | 60:44 error Unexpected function expression prefer-arrow-callback |
478 | 62:47 error Unexpected function expression prefer-arrow-callback |
479 | |
480 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/ve.ui.CXLinkAnnotationInspector.js |
481 | 52:54 error Unexpected function expression prefer-arrow-callback |
482 | |
483 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/ve.ui.CXLinkContextItem.js |
484 | 163:27 error Unexpected function expression prefer-arrow-callback |
485 | 185:69 error Unexpected function expression prefer-arrow-callback |
486 | 194:94 error Unexpected function expression prefer-arrow-callback |
487 | 203:54 error Unexpected function expression prefer-arrow-callback |
488 | 213:61 error Unexpected function expression prefer-arrow-callback |
489 | 284:27 error Unexpected function expression prefer-arrow-callback |
490 | |
491 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/ve.ui.CXPublishSettingsDialog.js |
492 | 197:59 error Unexpected function expression prefer-arrow-callback |
493 | |
494 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/ve.ui.CXReferenceContextItem.js |
495 | 54:33 error Unexpected function expression prefer-arrow-callback |
496 | |
497 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/ve.ui.CXTextSelectionContextItem.js |
498 | 100:10 error Unexpected function expression prefer-arrow-callback |
499 | 110:48 error Unexpected function expression prefer-arrow-callback |
500 | 153:57 error Unexpected function expression prefer-arrow-callback |
501 | 169:60 error Unexpected function expression prefer-arrow-callback |
502 | 205:57 error Unexpected function expression prefer-arrow-callback |
503 | |
504 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ve-cx/ui/ve.ui.CXTranslationToolbar.js |
505 | 55:48 error Unexpected function expression prefer-arrow-callback |
506 | 128:46 error Unexpected function expression prefer-arrow-callback |
507 | 129:50 error Unexpected function expression prefer-arrow-callback |
508 | 130:23 error Unexpected function expression prefer-arrow-callback |
509 | 159:60 error Unexpected function expression prefer-arrow-callback |
510 | 161:12 error Unexpected function expression prefer-arrow-callback |
511 | |
512 | /opt/work/mediawiki/extensions/ContentTranslation/modules/widgets/callout/ext.cx.callout.js |
513 | 58:18 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
514 | 106:15 error Prefer Object.assign or the spread operator to $.extend no-jquery/no-extend |
515 | 218:36 error Unexpected function expression prefer-arrow-callback |
516 | 229:31 error Unexpected function expression prefer-arrow-callback |
517 | 239:29 error Unexpected function expression prefer-arrow-callback |
518 | 241:24 error Unexpected function expression prefer-arrow-callback |
519 | |
520 | /opt/work/mediawiki/extensions/ContentTranslation/modules/widgets/translator/ext.cx.translator.js |
521 | 65:22 error Unexpected function expression prefer-arrow-callback |
522 | 86:23 error Unexpected function expression prefer-arrow-callback |
523 | 97:13 error Unexpected function expression prefer-arrow-callback |
524 | |
525 | /opt/work/mediawiki/extensions/ContentTranslation/tests/qunit/dm/mw.cx.dm.Translation.test.js |
526 | 14:50 error Unexpected function expression prefer-arrow-callback |
527 | 18:32 error Unexpected function expression prefer-arrow-callback |
528 | 208:48 error Unexpected function expression prefer-arrow-callback |
529 | |
530 | /opt/work/mediawiki/extensions/ContentTranslation/tests/qunit/mw.cx.MachineTranslationService.test.js |
531 | 20:10 error Unexpected function expression prefer-arrow-callback |
532 | 34:10 error Unexpected function expression prefer-arrow-callback |
533 | 62:10 error Unexpected function expression prefer-arrow-callback |
534 | 76:10 error Unexpected function expression prefer-arrow-callback |
535 | 90:10 error Unexpected function expression prefer-arrow-callback |
536 | |
537 | /opt/work/mediawiki/extensions/ContentTranslation/tests/qunit/mw.cx.TargetArticle.test.js |
538 | 11:32 error Unexpected function expression prefer-arrow-callback |
539 | |
540 | /opt/work/mediawiki/extensions/ContentTranslation/tests/qunit/mw.cx.TranslationTracker.test.js |
541 | 11:44 error Unexpected function expression prefer-arrow-callback |
542 | 80:48 error Unexpected function expression prefer-arrow-callback |
543 | |
544 | /opt/work/mediawiki/extensions/ContentTranslation/tests/qunit/mw.cx.util.test.js |
545 | 43:4 error Unexpected function expression prefer-arrow-callback |
546 | |
547 | /opt/work/mediawiki/extensions/ContentTranslation/tests/qunit/ui/mw.cx.ui.Infobar.test.js |
548 | 12:44 error Unexpected function expression prefer-arrow-callback |
549 | 26:52 error Unexpected function expression prefer-arrow-callback |
550 | |
551 | /opt/work/mediawiki/extensions/ContentTranslation/tests/selenium/componentobjects/DesktopEditor.js |
552 | 50:32 error Unexpected function expression prefer-arrow-callback |
553 | 54:30 error Unexpected function expression prefer-arrow-callback |
554 | |
555 | /opt/work/mediawiki/extensions/ContentTranslation/tests/selenium/pageobjects/UnifiedDashboard.page.js |
556 | 203:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
557 | |
558 | /opt/work/mediawiki/extensions/ContentTranslation/tests/selenium/specs/UnifiedDashboardNewTranslation.spec.js |
559 | 18:60 error Unexpected function expression prefer-arrow-callback |
560 | 19:74 error Unexpected function expression prefer-arrow-callback |
561 | |
562 | /opt/work/mediawiki/extensions/ContentTranslation/tests/selenium/specs/UnifiedDashboardSuggestions.spec.js |
563 | 30:46 error Unexpected function expression prefer-arrow-callback |
564 | 31:37 error Unexpected function expression prefer-arrow-callback |
565 | 43:65 error Unexpected function expression prefer-arrow-callback |
566 | 58:46 error Unexpected function expression prefer-arrow-callback |
567 | 66:45 error Unexpected function expression prefer-arrow-callback |
568 | |
569 | /opt/work/mediawiki/extensions/ContentTranslation/tests/selenium/utils/InterceptorService.js |
570 | 156:39 error Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>` arrow-body-style |
571 | |
572 | ✖ 365 problems (346 errors, 19 warnings) |
573 | 345 errors and 1 warning potentially fixable with the `--fix` option. |
574 | |
575 | |
576 | npx eslint --fix . (master|✚2) |
577 | |
578 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/ExploreLanguagesPage.vue |
579 | 188:1 warning This line has a length of 136. Maximum allowed is 100 max-len |
580 | |
581 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/MWLanguageSelector.vue |
582 | 178:1 warning This line has a length of 101. Maximum allowed is 100 max-len |
583 | |
584 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/SearchTopicPage.vue |
585 | 106:1 warning This line has a length of 134. Maximum allowed is 100 max-len |
586 | 153:1 warning The type 'PageSearchResult' is undefined jsdoc/no-undefined-types |
587 | |
588 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/mintHome.js |
589 | 57:1 warning This line has a length of 106. Maximum allowed is 100 max-len |
590 | |
591 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useEventLogging.js |
592 | 12:1 warning This line has a length of 208. Maximum allowed is 100 max-len |
593 | |
594 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useLanguageSearch.js |
595 | 44:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
596 | |
597 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useMintLanguages.js |
598 | 16:1 warning This line has a length of 102. Maximum allowed is 100 max-len |
599 | |
600 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useSearchResultLanguages.js |
601 | 44:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
602 | 44:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
603 | 45:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
604 | |
605 | /opt/work/mediawiki/extensions/ContentTranslation/minT/src/useUrlHelper.js |
606 | 20:1 warning The type 'PageSearchResult' is undefined jsdoc/no-undefined-types |
607 | |
608 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.contributions.js |
609 | 34:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
610 | 34:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
611 | 41:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
612 | |
613 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.newbytranslation.mobile.js |
614 | 22:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
615 | 22:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
616 | 23:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
617 | |
618 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.entrypoints.newbytranslation/index.js |
619 | 27:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
620 | 27:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
621 | 28:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
622 | |
623 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.interlanguagelink.init.js |
624 | 68:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
625 | 68:4 error Expected no linebreak before this expression implicit-arrow-linebreak |
626 | 71:1 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
627 | |
628 | /opt/work/mediawiki/extensions/ContentTranslation/modules/entrypoints/ext.cx.uls.quick.actions.js |
629 | 70:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
630 | 70:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
631 | 73:2 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
632 | |
633 | /opt/work/mediawiki/extensions/ContentTranslation/modules/mw.cx.MachineTranslationManager.js |
634 | 79:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
635 | 79:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
636 | 104:3 error Mixed spaces and tabs no-mixed-spaces-and-tabs |
637 | 104:5 error Expected no linebreak before this expression implicit-arrow-linebreak |
638 | |
639 | /opt/work/mediawiki/extensions/ContentTranslation/modules/stats/ext.cx.stats.js |
640 | 598:46 warning 'data' is already declared in the upper scope on line 597 column 9 no-shadow |
641 | 608:46 warning 'data' is already declared in the upper scope on line 597 column 9 no-shadow |
642 | 618:40 warning 'data' is already declared in the upper scope on line 597 column 9 no-shadow |
643 | 635:49 warning 'data' is already declared in the upper scope on line 634 column 9 no-shadow |
644 | 645:49 warning 'data' is already declared in the upper scope on line 634 column 9 no-shadow |
645 | 655:43 warning 'data' is already declared in the upper scope on line 634 column 9 no-shadow |
646 | 665:46 warning 'data' is already declared in the upper scope on line 634 column 9 no-shadow |
647 | 683:46 warning 'data' is already declared in the upper scope on line 682 column 9 no-shadow |
648 | 690:46 warning 'data' is already declared in the upper scope on line 682 column 9 no-shadow |
649 | 697:40 warning 'data' is already declared in the upper scope on line 682 column 9 no-shadow |
650 | 715:49 warning 'data' is already declared in the upper scope on line 714 column 9 no-shadow |
651 | 722:49 warning 'data' is already declared in the upper scope on line 714 column 9 no-shadow |
652 | 729:43 warning 'data' is already declared in the upper scope on line 714 column 9 no-shadow |
653 | 736:46 warning 'data' is already declared in the upper scope on line 714 column 9 no-shadow |
654 | |
655 | /opt/work/mediawiki/extensions/ContentTranslation/modules/ui/widgets/mw.cx.ui.PageSelectorWidget.js |
656 | 217:31 warning 'pages' is already declared in the upper scope on line 182 column 71 no-shadow |
657 | |
658 | ✖ 46 problems (23 errors, 23 warnings) |