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

fix: storybook parser for addon objects #878

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jb-0
Copy link

@jb-0 jb-0 commented Jan 26, 2024

Description

When using storybook addons, it's possible to specify an addon as an object. Doing so seems to cause depcheck to output the following:

Missing dependencies
* [object Object]: ./.storybook/main.js

Example config that would result in failure:

addons: [
    "@storybook/addon-essentials",
    "@storybook/addon-a11y",
    {
      name: "@storybook/addon-themes",
      options: {},
    },
  ],

This MR addresses the issue by taking the name property where it exists. Closes #882

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

Successfully merging this pull request may close these issues.

Storybook addon object not recognised ([object Object])
1 participant