-
Notifications
You must be signed in to change notification settings - Fork 34
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
Migrate to latest ESLint Version #153
Conversation
eslint.config.js
Outdated
// Add the files for applying the recommended TypeScript configs | ||
// only for the Typescript files. | ||
// This is necessary when we have the multiple extensions files | ||
// (e.g. .ts, .tsx, .js, .cjs, .mjs, etc.). |
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.
Just remove the comments from the file, the object names are descriptive enough.
Guess that means we need a separate workflow to verify prettier formatting? |
I can rename the existing prelint and prelint:fix scripts to format and format:fix to handle Prettier separately. Alternatively, I could keep the current names, which would avoid the need to run the two steps manually. On second thought, prelint and prelint:fix could just call format and format:fix so we keep things DRY. Which approach do you prefer? |
Afraid i have no idea what you're referring to. As far as i understand prettier used to be called as part of the eslint GitHub Action. Now that prettier is not in the eslint config anymore what will call it in CI? |
Prettier will still run as part of the CI process because I added pre scripts for both lint and lint:fix (prelint and prelint:fix). npm automatically runs these pre scripts before executing the corresponding lint and lint:fix scripts. So, Prettier will be invoked every time linting occurs, both in local development and CI. |
Update: Migrate to Latest ESLint Version
Description:
This PR introduces an upgrade to the latest version of ESLint. While there are multiple areas to review, I believe this is a solid starting point for improving code quality and consistency across the project.
Summary of Changes:
Commit 1:
Commit 2:
Next Steps:
Comments and suggestions are welcome!