-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Bug: Unable to test rules in v9 in both flat config and eslintrc #18292
Comments
As we announced, Functionally, if your rules pass If you really need to test eslintrc specifically, then you'll need to use ESLint v8.x for that. |
It makes perfect sense for RuleTester to test it by default, but I don't understand why eslint 9, which still supports two config systems, has failed to provide a way to test both. |
I'm 👍 to the change. Remember: users can still use eslintrc with eslint v9 ( |
Environment
Node version: n/a
npm version: n/a
Local ESLint version: v9.0.0
Global ESLint version: none
Operating System: n/a
What parser are you using?
Default (Espree)
What did you do?
A contributor ran the RuleTester with
ESLINT_USE_FLAT_CONFIG=false
, but it seems like there's no way my eslint plugin can maintain compatibility with eslint v9 and eslintrc (since unless it's tested, it's not compatible)What did you expect to happen?
I expected RuleTester to function just like it did in eslint v8, so I can test rules via eslintrc.
What actually happened?
import-js/eslint-plugin-import#2996 (comment) reports it's an error
Link to Minimal Reproducible Example
import-js/eslint-plugin-import#2996 (comment)
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: