Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Feb 14, 2025

This rewrites the existing ESLint config to the flat config format, with minimal modifications to the original config, other than those required by the new format.

In addition to that, there are some other minor changes:

  • I updated the Prettier config to use Prettier 3.
  • I removed ESLint and related dependencies from all non-root workspace packages. These are no longer required, and removing them makes dependency maintenance a bit easier.

Closes #3099.

@socket-security
Copy link

socket-security bot commented Feb 14, 2025

Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] 🔁 npm/[email protected] None 0 7.88 MB prettier-bot

🚮 Removed packages: npm/[email protected]

View full report↗︎

@socket-security
Copy link

socket-security bot commented Feb 14, 2025

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@Mrtenz Mrtenz force-pushed the mrtenz/eslint-9/update-configs branch 2 times, most recently from d1f7437 to 5811f63 Compare February 14, 2025 14:45
@Mrtenz Mrtenz force-pushed the mrtenz/eslint-9/update-configs branch from afbdfc0 to 67b797f Compare February 14, 2025 18:40
@Mrtenz Mrtenz marked this pull request as ready for review February 17, 2025 13:07
@Mrtenz Mrtenz requested a review from a team as a code owner February 17, 2025 13:07
rules: {
// This rule is too strict for test files.
// TODO: Upstream this change to `@metamask/eslint-config-jest`.
'@typescript-eslint/unbound-method': 'off',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove some comments in some of the controllers with this change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #3112. I split them up to keep it reviewable.

@Mrtenz Mrtenz merged commit f54dbdf into eslint-9 Feb 17, 2025
115 of 119 checks passed
@Mrtenz Mrtenz deleted the mrtenz/eslint-9/update-configs branch February 17, 2025 13:43
Mrtenz added a commit that referenced this pull request Feb 17, 2025
This either replaces or removes inline comments disabling ESLint rules
following the configuration changes in #3107 and rule changes in
`@metamask/eslint-config`.
Mrtenz added a commit that referenced this pull request Feb 19, 2025
This rewrites the existing ESLint config to the flat config format, with
minimal modifications to the original config, other than those required
by the new format.

In addition to that, there are some other minor changes:

- I updated the Prettier config to use Prettier 3.
- I removed ESLint and related dependencies from all non-root workspace
packages. These are no longer required, and removing them makes
dependency maintenance a bit easier.

Closes #3099.
Mrtenz added a commit that referenced this pull request Feb 19, 2025
This either replaces or removes inline comments disabling ESLint rules
following the configuration changes in #3107 and rule changes in
`@metamask/eslint-config`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants