-
Notifications
You must be signed in to change notification settings - Fork 58
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
Suport ESLint v9 #157
Comments
@Sv443 It is not. Flat config was available in ESLint 8, and is optional in ESLint 9. My issue specifically says "separately from flat config," which I guess you missed? |
This plugin also depends on a very old version of |
Hey @maxpatiiuk seems like the typescript utils only support ESLint v9 in an alpha version, which is a bummer. I'm honestly not sure if it's possible to support both v8 and v9 of ESLint.. |
Yes, it's a tricky situation. Options:
edit: lack of eslint 9 support in this package is not a deal breaker for us (we can temporary disable it). a few other packages we have a bigger blockers, and we must wait as the ecosystem churns a bit |
Something that might influence the decision: ESLint v8 is EOL in less than two months. https://eslint.org/version-support/ The best solution might be to drop support for v8. If anyone needs to use ESLint v8, they can use the current version of this package (0.8.0) instead of the latest version. |
@yannbf If the alpha status is the dealbreaker here, |
I am working on a solution to this issue! I have come up with the following solution, which we hope you will review and consider. AssumptionBecause of the premise in the peerDependencies here, not all versions of eslint supported by eslint-plugin-storybook can be supported. I then propose the following solution, which I hope you will consider with understanding. SuggestionRelease a version of
|
This would be a breaking change on its own if it isn't inclusive of 8.57. There are undoubtedly people using the plugin today with eslint 8.57 |
That could easily happen. We think the key is the timing of the release.
I thought it would be better to release them at the same time and have an official announcement. (Please note that this is a user's opinion, not an official one) |
But releasing a breaking change in 1. as a non-major version change is a bit of a non-starter. Why not just include 8.57 in there? |
Hmmm, yes, indeed. The reason I'm using the scope of my proposed peerDependencies is because I see it as going up to |
Hey everyone! Sorry for taking long to solve this. We've been quite busy with multiple projects. @re-taro thanks for your insights. There is a PR here that tries to support ESLint v9 also achieve backwards compatibility while introducing support for flat config, please stay tuned: There is already a canary that you can try out today: Although the canary has been confirmed by many people that it works as intended, there is still more work to be done. |
@yannbf thanks for the update. Is there anything I can do to help? |
Hi @Cyberboss Probably because the version of |
Fixed with: |
Separately from flat config, ESLint v9 dropped several deprecated APIs, including context.getScope, which this plugin uses. Those need to be replaced.
The text was updated successfully, but these errors were encountered: