Commit 232f0b8
chore: Fix all auto-fixable ESLint warnings (#7105)
## Explanation
Fix all auto-fixable ESLint warnings. These changes were generated by
running `yarn eslint --fix`.
There were a number of blank JSDoc entries added by the initial auto-fix
command, which had to be reverted because the empty blocks generated
errors. The JSDoc auto-fix rules also messed up some of our malformated
type doc blocks, which were reverted as well (the current invalid syntax
isn't good, but we should at least preserve it until we can fix it
properly).
I also had to do a manual pass to remove obsolete comments and extra
newlines from the auto-fix rule that removed unused ESLint ignore
directives.
Aside from that, everything else ESLint recognized as auto-fixable seems
to have been fixed correctly.
## References
N/A
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Repo-wide ESLint autofixes: mark private fields as readonly, reorder
imports, clean/adjust ESLint disables and JSDoc, switch some re-exports
to type-only, and update lint warning thresholds; no functional changes.
>
> - **Codebase-wide ESLint autofixes**:
> - Mark many private fields as `readonly` (e.g., in
`ApprovalController`, `RatesController`, `TokenRatesController`,
`NameController`, various providers/controllers/tests).
> - Reorder/normalize imports across numerous files and tests.
> - Remove or relocate obsolete `eslint-disable` comments; trim extra
newlines and comments.
> - JSDoc tidying: add missing spacing, brief descriptions, and param
docs; remove empty/malformed blocks.
> - Convert some re-exports to type-only (e.g.,
`logging-controller/src/logTypes/index.ts`,
`message-manager/src/index.ts`).
> - Minor string/template/comment fixes to satisfy lint rules.
> - **Config/metadata**:
> - Update `eslint-warning-thresholds.json` to reflect fewer rule
violations.
> - **Tests/Utilities**:
> - Align tests and helpers with import/order and readonly changes;
minor noop function/type tweaks.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
cf8849f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Maarten Zuidhoorn <[email protected]>1 parent 800e615 commit 232f0b8
File tree
103 files changed
+216
-682
lines changed- packages
- approval-controller/src
- assets-controllers/src
- RatesController
- Standards/NftStandards/ERC721
- crypto-compare-service
- token-prices-service
- base-controller/src
- bridge-controller/src
- build-utils/src/transforms
- composable-controller/src
- controller-utils/src
- ens-controller/src
- gas-fee-controller/src
- json-rpc-middleware-stream/src
- keyring-controller/tests/mocks
- logging-controller/src
- logTypes
- message-manager/src
- multichain-api-middleware/src/middlewares
- name-controller/src
- providers
- network-controller
- src
- tests/network-client
- permission-controller/src
- rpc-methods
- permission-log-controller
- src
- tests
- phishing-controller/src
- polling-controller/src
- rate-limit-controller/src
- remote-feature-flag-controller/src
- client-config-api-service
- utils
- sample-controllers/src/sample-gas-prices-service
- shield-controller/src
- signature-controller/src/utils
- transaction-controller/src/helpers
- user-operation-controller/src
- helpers
- utils
- scripts/create-package
- tests
- setupAfterEnv
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
103 files changed
+216
-682
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 11 | | |
16 | 12 | | |
17 | 13 | | |
| |||
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
49 | | - | |
50 | | - | |
| 45 | + | |
51 | 46 | | |
52 | 47 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 48 | + | |
67 | 49 | | |
68 | 50 | | |
69 | 51 | | |
70 | 52 | | |
71 | 53 | | |
72 | 54 | | |
73 | 55 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 56 | | |
78 | 57 | | |
79 | 58 | | |
| |||
82 | 61 | | |
83 | 62 | | |
84 | 63 | | |
85 | | - | |
86 | 64 | | |
87 | 65 | | |
88 | 66 | | |
89 | | - | |
90 | 67 | | |
91 | 68 | | |
92 | 69 | | |
93 | 70 | | |
94 | | - | |
95 | 71 | | |
96 | 72 | | |
97 | 73 | | |
98 | 74 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 75 | + | |
102 | 76 | | |
103 | 77 | | |
104 | 78 | | |
105 | 79 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 80 | | |
110 | 81 | | |
111 | 82 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 83 | | |
116 | 84 | | |
117 | 85 | | |
118 | 86 | | |
119 | 87 | | |
120 | 88 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 89 | | |
125 | 90 | | |
126 | 91 | | |
| |||
136 | 101 | | |
137 | 102 | | |
138 | 103 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 104 | | |
143 | 105 | | |
144 | 106 | | |
| |||
153 | 115 | | |
154 | 116 | | |
155 | 117 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 118 | | |
160 | 119 | | |
161 | 120 | | |
| |||
260 | 219 | | |
261 | 220 | | |
262 | 221 | | |
263 | | - | |
264 | | - | |
| 222 | + | |
265 | 223 | | |
266 | 224 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 225 | + | |
272 | 226 | | |
273 | 227 | | |
274 | 228 | | |
| |||
285 | 239 | | |
286 | 240 | | |
287 | 241 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 242 | | |
292 | 243 | | |
293 | 244 | | |
294 | 245 | | |
295 | 246 | | |
296 | 247 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 248 | | |
301 | 249 | | |
302 | 250 | | |
303 | 251 | | |
304 | | - | |
305 | | - | |
| 252 | + | |
306 | 253 | | |
307 | 254 | | |
308 | 255 | | |
| |||
316 | 263 | | |
317 | 264 | | |
318 | 265 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | 266 | | |
323 | 267 | | |
324 | 268 | | |
| |||
329 | 273 | | |
330 | 274 | | |
331 | 275 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 276 | + | |
358 | 277 | | |
359 | 278 | | |
360 | 279 | | |
| |||
368 | 287 | | |
369 | 288 | | |
370 | 289 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | 290 | | |
378 | | - | |
379 | | - | |
380 | | - | |
| 291 | + | |
381 | 292 | | |
382 | 293 | | |
383 | 294 | | |
| |||
388 | 299 | | |
389 | 300 | | |
390 | 301 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | 302 | | |
395 | 303 | | |
396 | 304 | | |
397 | 305 | | |
398 | | - | |
399 | | - | |
400 | 306 | | |
401 | 307 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | 308 | | |
414 | 309 | | |
415 | 310 | | |
| |||
441 | 336 | | |
442 | 337 | | |
443 | 338 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | 339 | | |
448 | 340 | | |
449 | | - | |
450 | 341 | | |
451 | 342 | | |
452 | 343 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
| 344 | + | |
502 | 345 | | |
503 | 346 | | |
504 | 347 | | |
505 | 348 | | |
506 | 349 | | |
507 | 350 | | |
508 | 351 | | |
509 | | - | |
510 | | - | |
| 352 | + | |
511 | 353 | | |
512 | 354 | | |
513 | 355 | | |
514 | 356 | | |
515 | 357 | | |
516 | 358 | | |
517 | | - | |
518 | 359 | | |
519 | 360 | | |
520 | 361 | | |
521 | 362 | | |
522 | | - | |
523 | 363 | | |
524 | 364 | | |
525 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | 618 | | |
621 | 619 | | |
622 | 620 | | |
| |||
0 commit comments