Skip to content
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

unused const warning #144

Open
landsman opened this issue Nov 3, 2023 · 2 comments
Open

unused const warning #144

landsman opened this issue Nov 3, 2023 · 2 comments

Comments

@landsman
Copy link

landsman commented Nov 3, 2023

Describe the bug

I can see warnings in my stories about unused constants.
I think that this should be covered by this package, plugin.

Screenshot 2023-11-03 at 11 54 06

my .eslintrc.json

{
  "extends": [
    "next/core-web-vitals",
    "plugin:storybook/recommended"
  ]
}

workaround is to put above ignore: // @ts-ignore unused but it's ugly. Please suggest the correct way.
I'm using next.js 13+ and app router, but most of mine stories are in directory: ./src/components.

Related question: storybookjs/storybook#11093

@beckettart
Copy link

This would be a helpful feature for me too. I'm using PhpStorm's "Inspect Code" feature, and this causes my results to be cluttered.

@AJ198081
Copy link

This issue is the only blemish on an otherwise perfect 'storybook' setup, will be highly appreciated if it can be fixed, or otherwise if there is a work-around recommended for it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants