Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I updated eslint to v9 and to use the new flat config.
These are the steps I took
Uninstalled:
@makerx/eslint-config
@typescript-eslint/eslint-plugin
@typescript-eslint/parser
eslint
eslint-config-prettier
eslint-plugin-prettier
eslint-plugin-react-hooks
eslint-plugin-react-refresh
eslint-plugin-tailwindcss
Reinstalled (in this order)
eslint
@eslint/js
typescript-eslint // Takes the place of @typescript-eslint
eslint-config-prettier
eslint-plugin-react // New, not sure if it's needed
eslint-plugin-react-hooks
eslint-plugin-react-refresh
eslint-plugin-tailwindcss
Note: I didn't install the makerx eslint config because it doesn't conform to flat config and couldn't be imported. I did take what is defined in the file and added it to this config
tseslint
for linting instead of eslint and adding ts directives.npm run lint
and added exceptions that I missed when creating the file like ignoring vars that begin with '_'