Commit 120ed04
authored
chore: Re-enable lint rules with no violations (#7267)
## Explanation
These lint rules were temporarily disabled at some point in the past,
but we still want to use them. There were no violations for any of these
rules, so they have been re-enabled.
Whatever violations motivated disabling these must have been
incidentally fixed since then.
Additionally, the modifications made for
`@typescript-eslint/switch-exhaustiveness-check` are now in the shared
config, so the override was no longer needed.
## 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)
- [ ] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes several `off` overrides to re-enable ESLint rules and drops
the custom `@typescript-eslint/switch-exhaustiveness-check` config.
>
> - **ESLint config (`eslint.config.mjs`)**:
> - Re-enable defaults by removing `off` overrides for:
`function-paren-newline`, `implicit-arrow-linebreak`,
`import-x/no-anonymous-default-export`, `lines-around-comment`,
`no-invalid-this`, `radix`.
> - Remove custom rule config for
`@typescript-eslint/switch-exhaustiveness-check`.
> - All other rules/settings remain as before.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
25896e0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 468b1dc commit 120ed04
1 file changed
+0
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | | - | |
37 | | - | |
38 | 35 | | |
39 | | - | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
47 | | - | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
| |||
115 | 109 | | |
116 | 110 | | |
117 | 111 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 112 | | |
127 | 113 | | |
128 | 114 | | |
| |||
0 commit comments