Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Dec 2, 2025

We try to avoid using ESLint warnings because they tend to be easy for conitrbutors to miss, and they pile up over time and make the linter miserable to work with. Our team's preference is to ignore or suppress violations that we don't want to resolve directly.

We never set any rules to warn directly, but some of the configs we're inheriting from include warnings. All of them have been converted to errors.


Note

Converts specific Promise and Jest ESLint rules from warn to error and updates changelogs accordingly.

  • Base (@metamask/eslint-config):
    • Elevate Promise rules to error: promise/no-callback-in-promise, promise/no-nesting, promise/no-promise-in-callback, promise/no-return-in-finally, promise/valid-params.
    • Update CHANGELOG.md to note breaking changes.
  • Jest (@metamask/eslint-config-jest):
    • Elevate Jest rules to error: jest/expect-expect, jest/no-alias-methods, jest/no-commented-out-tests, jest/no-disabled-tests.
    • Update CHANGELOG.md to note breaking changes.

Written by Cursor Bugbot for commit a545b6a. This will update automatically on new commits. Configure here.

We try to avoid using ESLint warnings because they tend to be easy for
conitrbutors to miss, and they pile up over time and make the linter
miserable to work with. Our team's preference is to ignore or suppress
violations that we don't want to resolve directly.

We never set any rules to `warn` directly, but some of the configs
ew're inheriting from include warnings. All of them have been converted
to errors.
@Gudahtt Gudahtt marked this pull request as ready for review December 2, 2025 16:25
@Gudahtt Gudahtt requested a review from a team as a code owner December 2, 2025 16:25
Copy link
Contributor

@cryptodev-2s cryptodev-2s left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit a0e0bc8 into main Dec 2, 2025
26 checks passed
@Gudahtt Gudahtt deleted the convert-all-warnings-to-errors branch December 2, 2025 17:39
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.

3 participants