-
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
feat: support flat config #156
Conversation
@kazupon seems like the release step can't succeed because for some reason a pnpm lock file is modified, even though I can't really reproduce it locally. Do you have any clue? |
@yannbf I'd better debug it by actually looking at |
@yannbf - I think you were almost there with the Current action failureThe reason the current action is failing is that the Experiment with a fix failureYou did pin the version in As there are two new SolutionsI guess the way forward might be:
(Separately, it may be worth upgrading to pnpm v9 some point in the future) |
Oh wow @tom-fletcher thank you so much for your invaluable assist! It worked wonderfully. @kazupon the canary is ready to test!! |
@yannbf The lint itself is fine, but the type is any, so it would be nice if that could be resolved as well. |
Was able to remove warnings in canary with everything working perfectly by pinning "@typescript-eslint/utils" dependency on eslint to the one configured in my project using an override in my projects 'package.json'. "devDependencies": {
"eslint": "^9.7.0",
"eslint-plugin-storybook": "^0.9.0--canary.156.ed236ca.0",
},
"overrides": {
"@typescript-eslint/utils": {
"eslint": "$eslint"
}
}, Looks like "@typescript-eslint/utils" has a conflicting peer dependency of eslint@"^8.56.0" |
There's a new major version of "@typescript-eslint/utils" that supports eslint v9 |
.github/workflows/test.yml
Outdated
|
||
- uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 |
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.
If you remove this line, then pnpm/action-setup@v4
will be able to pick up pnpm version from packageManager
field in package.json
Awesome work! Any plans to release this soon? |
@yannbf @kasperpeulen Could you release a new (canary?) version where the glob pattern issue mentioned above is fixed? ESLint v8 is actually not supported anymore so this means that eslint-plugin-storybook is only compatible with ESLint versions that have reached EOL. |
The latest canary (0.10.0--canary.156.408aed4.0) seems good. I still see the following warning from yarn:
should the @typescript-eslint/utils dependency be bumped as part of this PR, or is that a separate issue? |
@jdelStrother @Mathias-S We released a new canary where the mentioned issues should be fixed: |
Yep, lgtm |
🚀 PR was released in |
Closes: #135
What Changed
This is a branch off of the original PR at #152 incredibly done by @kazupon. Only reason I created a new PR is because the previous one was a fork, and therefore CI checks were not running, neither the canary release.
Original PR text:
I've supported ESLint flat configuration and eslint v9
This PR has compatible for legacy style configuration and compatible eslint API using.
So to maintain compatibility, we provide a preset with the
flat
namespace.flat config example is here:
This implementation is based on
eslint-plugin-vue
, which has several presets to support Vue 3 and Vue 2.docs is here:
https://eslint.vuejs.org/user-guide/#usage
Checklist
Check the ones applicable to your change:
pnpm run update-all
Change Type
Indicate the type of change your pull request is:
maintenance
documentation
patch
minor
major
📦 Published PR as canary version:
0.10.0--canary.156.ce8985b.0
✨ Test out this PR locally via: