Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESLint config #5132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix ESLint config #5132

wants to merge 1 commit into from

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented Jan 11, 2025

Explanation

The upgrade to ESLint 9 which occurred in a previous commit was not done correctly. An array must be passed to createConfig instead of a series of arguments. As a result, a lot of lint rules were accidentally disabled.

This commit fixes the ESLint config and corrects any lint violations. It turns out that upgrading the ESLint packages created a bunch of new lint violations, so those have been turned into warnings rather than errors. To prevent new instances of these violations from occurring, a script has been added which captures existing warning counts and exits with a non-zero exit code if the count increases. This script is also now used for yarn lint:eslint so that CI will fail if the count increases.

References

Changelog

N/A (developer change only)

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

The upgrade to ESLint 9 which occurred in a previous commit was not done
correctly. An array must be passed to `createConfig` instead of a series
of arguments. As a result, a lot of lint rules were accidentally
disabled.

This commit fixes the ESLint config and corrects any lint violations.
It turns out that upgrading the ESLint packages created a bunch of new
lint violations, so those have been turned into warnings rather than
errors. To prevent new instances of these violations from occurring, a
script has been added which captures existing warning counts and exits
with a non-zero exit code if the count increases. This script is also
now used for `yarn lint:eslint` so that CI will fail if the count
increases.
@mcmire mcmire requested review from a team as code owners January 11, 2025 00:54
Copy link

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

Package New capabilities Transitives Size Publisher
npm/nwsapi@2.2.16 🔁 npm/nwsapi@2.2.12 None 0 85.8 kB diego

View full report↗︎

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.

1 participant