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

chore(deps): upgrade ESLint to v9 #200

Merged

Conversation

gian1200
Copy link

Update ESLint before migration to ESM.

PS: Wasn't sure what to do with error on index.js, so I omitted it

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.80%. Comparing base (7ebdacd) to head (f051e79).
Report is 33 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
- Coverage   94.11%   92.80%   -1.32%     
==========================================
  Files          26       29       +3     
  Lines         493      542      +49     
==========================================
+ Hits          464      503      +39     
- Misses         29       39      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@TimothyJones TimothyJones left a comment

Choose a reason for hiding this comment

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

Thanks again!

"fix": "eslint . --fix",
"posttest": "eslint . && npm run format:check",
"eslint": "eslint .",
"eslint:fix": "npm run eslint -- --fix",
Copy link
Member

Choose a reason for hiding this comment

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

Nice. Thanks for splitting this out.

What do you think of lint instead of eslint?

I usually use the name of what it's for, rather than the name of the tool - that way you don't need to remember whether the project has different tools. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I've made this change on master, assuming it wouldn't be terribly contentious

Copy link
Author

Choose a reason for hiding this comment

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

It's fine for me. There are some cases where there is more than one linter (eg Stylelint + ESLint). In that scenario, a "lint" script usually calls all the other scripts.

In this case, your suggestion makes sense given that ESLint is the only linter in this project (omitting prettier).

@TimothyJones TimothyJones merged commit 890019a into absolute-version:master Oct 21, 2024
6 checks passed
@TimothyJones
Copy link
Member

I really appreciate this one! Upgrading eslint to 9 has been a pain on my other projects, so this had been on my list of "should do, but it'll be annoying".

@gian1200 gian1200 deleted the chore/update-to-eslint-9 branch October 22, 2024 01:41
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