storybookjs / eslint-plugin-storybook

🎗Official ESLint plugin for Storybook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unused const warning

landsman opened this issue · 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: storybookjs/storybook#11093