Replies: 2 comments
-
I don't think we could reliably detect when the fixup is no longer needed for a plugin. The fixup provides several API methods that have been removed in ESLint v9. We could track if they were used during the linting, but whether or not those particular methods will be used may depend on which rules are enabled, how they are configured, and even the code they encounter during linting. So, it could happen that at some point it looks like the fixup is no longer needed because no old API methods have been used, and you remove the fixup, but then the linting crashes when you modify your code. |
Beta Was this translation helpful? Give feedback.
-
The overall idea is that the functions should just quietly not make changes if it's not necessary so you don't have to worry about whether or not the package is necessary. You can always remove it at a later time. |
Beta Was this translation helpful? Give feedback.
-
It would be nice if the fixup helpers in
@eslint/compat
would fail if they don't have anything to fix. In that case, if a plugin updated to no longer need fixup, we would find out immediately and know to remove the fixup calls, and eventually remove the dependency on@eslint/compat
itself.Beta Was this translation helpful? Give feedback.
All reactions