-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add ESLint 9 to support oxlint #834
Conversation
When saving a file, the VSCode ESLint extension removes eslint-disable comments for rules that are overridden by oxlint, making it impossible to disable rules for oxlint when using the ESLint extension. Need to find a fix. |
Set ESLint up to ignore unused disable directives. |
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.
@uday-rana Great job 👍. Since ESLint 9 dropped support for .eslintignore
file, I wonder if it's still possible to have a single source for ignored files?
We can import the ignore list from gitignore into eslint: https://eslint.org/docs/latest/use/configure/ignore#including-gitignore-files |
@uday-rana There's also a command line option To avoid confusion maybe we can include a comment in |
That could lead to inconsistent behaviour if oxlint is run with |
@uday-rana Makes sense! Let's stick with what we have so far. |
Fixes #803
Changes
Added ESLint 9, which is to be run after oxlint as a fallback for linting rules that aren't covered by oxlint. Rules that oxlint does cover won't be linted again by ESLint. This is the approach recommended by oxc:
Added two oxc plugins not enabled by default: jsx-a11y and import
Removed some settings from .oxlintrc.json that didn't do anything or were just re-defining the defaults.
Fixed lint errors detected after ESLint was added.