-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
.storybook folder is a dotfile and ignored by default by eslint #295
Comments
Yep. May be you should change the config directory. |
I'm closing this in favour of above. If you are looking for something else, reopen with more info. |
can we reopen this issue? the above link does not work any more |
You can pass config directory as a CLI option:
Alternatively, you can put this line to your
|
And don't forget to add the same line to |
If you are using a monorepo, chances are that you have to add a .eslintignore file at the root of the repository with the following content:
In my case, it was also necessary to add this file inside my storybook package. |
currently
config.js
andwebpack.config.js
under./.storybook
is ignored by default by eslint. As the dotfiles option of eslint (https://github.com/eslint/eslint/blob/fca067938fcd54c98945356b41c8c9a7dc404c04/tests/lib/ignored-paths.js#L91) can't be disabled on the command line, these files never get linted.The text was updated successfully, but these errors were encountered: