chore: Update ESLint config packages to v15 #7305
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
Update all ESLint config packages from v14.x to v15. These updates introduce some helpful new rules, and loosen/disable a few rules that were causing us problems.
Details here: MetaMask/eslint-config#431
Most of the changes are due to the newly introduced
import-x/consistent-type-specifier-stylerule. The majority of the changes were from runningyarn lint:fix, but I did make one commit to consolidate some duplicate import lines that the auto-fixer added.References
N/A
Checklist
Note
Bumps ESLint config packages to v15 and updates imports across the repo to the new
import type { ... }style, with minor ESLint rule tweaks (jsdoc) and lockfile updates.@metamask/eslint-config*packages to v15 inpackage.jsonandyarn.lock.eslint.config.mjs: keepjsdoc/require-jsdocand related jsdoc rules disabled; update comments.import-x/consistent-type-specifier-style: switch toimport type { ... }for type-only imports; separate value vs type imports across packages.Written by Cursor Bugbot for commit 735caaf. This will update automatically on new commits. Configure here.