-
-
Notifications
You must be signed in to change notification settings - Fork 14
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: @eslint/compat
fixupPluginRules()
does not work with rule options
#127
Comments
@eslint/compat
fixupPluginRules()
does not work with rule options
The problem is that Top-level I think we could update |
That seems like the easiest solution to me. 👍 |
I can work on this. |
Thanks @mdjermanovic! I was having the same problem with I am not familiar with old plugins, but
|
@ehmicky yes, that was the original format of rules that we deprecated and removed in v9. |
Which packages are affected?
@eslint/compat
@eslint/config-array
@eslint/core
@eslint/migrate-config
@eslint/object-schema
@eslint/plugin-kit
Environment
Node version: 23.1.0
npm version: 10.9.0
ESLint version: 9.13.0
Operating System: Ubuntu 24.04
What did you do?
What did you expect to happen?
The
fixupPluginRules()
from@eslint/compat
should fix thefp/no-mutating-methods
rule.What actually happened?
It crashed it instead.
Link to Minimal Reproducible Example
https://github.com/ehmicky/eslint-rewrite-bug
Participation
Additional comments
eslint-plugin-fp
is unmaintained, so I cannot expect an upgrade to ESLint 9, and need to rely on@eslint/compat
instead.However, their rule seems to be correct: https://github.com/jfmengels/eslint-plugin-fp/blob/205861e874a4db8caedfbe2cc8af599d8d45b475/rules/no-mutating-methods.js#L70-L80. The above configuration worked fine with ESLint 8.
Please note that:
The text was updated successfully, but these errors were encountered: