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

ADD an ignore for an eslint error about a missing dependency (puppeteer) #7239

Merged
merged 3 commits into from
Jul 10, 2019

Conversation

ndelangen
Copy link
Member

Issue: #6993 (comment)

What I did

ADD a ignore rule

@ndelangen ndelangen added the maintenance User-facing maintenance tasks label Jul 1, 2019
@ndelangen ndelangen requested a review from Hypnosphi July 1, 2019 12:00
@ndelangen ndelangen self-assigned this Jul 1, 2019
@vercel
Copy link

vercel bot commented Jul 1, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-fix-storyshots-eslint-error.storybook.now.sh

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this in the file instead of globally?

@ndelangen
Copy link
Member Author

@shilman no, the issue is: sometimes the package is installed, sometimes it isn't.

In the case the package is installed, eslint will complain about an eslint ignore that's unnecessary. It's pretty meta, but your suggestion won't work.

@Hypnosphi
Copy link
Member

Hypnosphi commented Jul 1, 2019

I think it's better to add .eslintrc.js to storyshots-puppeteer and specify puppeteer in import/core-modules setting. That way, it won't ignore other import errors

See e.g. https://github.com/storybookjs/storybook/blob/e9d5efc5b5fed1f576a79311d2b11d24227b584d/addons/storyshots/storyshots-core/.eslintrc.js

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tho there are some deepscan errors with the unused vars

@ndelangen
Copy link
Member Author

I'm fine with those

@ndelangen ndelangen merged commit bf5be22 into next Jul 10, 2019
@ndelangen ndelangen deleted the fix/storyshots-eslint-error branch July 10, 2019 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants