eslint-plugin-storybook icon indicating copy to clipboard operation
eslint-plugin-storybook copied to clipboard

unused const warning

Open landsman opened this issue 1 year ago • 2 comments

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: https://github.com/storybookjs/storybook/issues/11093

landsman avatar Nov 03 '23 10:11 landsman