-
Notifications
You must be signed in to change notification settings - Fork 68
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 packageManagerfield 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
flatnamespace.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-allChange Type
Indicate the type of change your pull request is:
maintenancedocumentationpatchminormajor📦 Published PR as canary version:
0.10.0--canary.156.ce8985b.0✨ Test out this PR locally via:
npm install eslint-plugin-storybook@0.10.0--canary.156.ce8985b.0 # or yarn add eslint-plugin-storybook@0.10.0--canary.156.ce8985b.0