-
Notifications
You must be signed in to change notification settings - Fork 404
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
chore: Updated eslint configuration #2851
base: main
Are you sure you want to change the base?
Conversation
8e504e9
to
6c63650
Compare
2374e99
to
89ff244
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2851 +/- ##
==========================================
+ Coverage 88.74% 97.22% +8.47%
==========================================
Files 294 295 +1
Lines 46447 46466 +19
==========================================
+ Hits 41221 45175 +3954
+ Misses 5226 1291 -3935
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -46,7 +46,7 @@ test('should correctly convert bools when false', async () => { | |||
}) | |||
|
|||
test('should correctly convert integers', async () => { | |||
const intValue = 9999999999999999 | |||
const intValue = 999999999999999 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one generated an error about the value overflowing. I don't think we were trying to test against an overflowed value, so I just shortened it to fit.
89ff244
to
af3771d
Compare
This PR resolve #2852.
This PR updates the eslint configuration, and plugins, to the latest. I discovered that our shared configuration has not kept up-to-date on the packages that it uses. In particular:
eslint
released v9 that radically changes (and simplifies) how configuration is written and parsed.eslint-plugin-node
has been out-of-maintenance for a long time, replaced byeslint-plugin-n
The result was a difficult to update shared configuration package. Now that this PR is ready, I could go back and update the shared package to eslint@9 standards, but I'm not convinced the shared package is worth the maintenance cost. Most of the configuration is specific to the repository. I am quite certain that most of the packages we maintain can get by with the simple
neostandard
configuration.Having been out-of-date for so long, our code base has developed many "errors" in regard to linting. The sonarjs plugin saw a lot of additions that now trigger errors. So there are many files touched in this PR. I took the approach of overriding the majority of rules for the tests, but using inline comments in the actual library code. I think our tests can be more lenient, and that we can investigate on a case-by-case basis all of the manual overrides.
I think we should wait for the
next
branch to be merged tomain
, at which point I will rebase and update this branch, before we merge. But I'm open to merging this first if the team thinks it will not cause too much strife in keepingnext
synchronized.