.storybook folder is a dotfile and ignored by default by eslint
See original GitHub issuecurrently config.js
and webpack.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.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:5 (3 by maintainers)
Top Results From Across the Web
storybook folder is a dotfile and ignored by default by eslint #295
currently config.js and webpack.config.js under ./.storybook is ignored by default by eslint. As the dotfiles option of eslint ...
Read more >How to use Storybook with ESLint - JS.ORG
The storybook/story-exports and storybook/default-exports will make sure that your file contains a default export (known as meta) and at least ...
Read more >ESLint for storybook files - Stack Overflow
1 Answer 1. Sorted by: Reset to default. Highest score (default) ...
Read more >Storybook ESLint plugin - Medium
Storybook ESLint plugin. Our community writes thousands of stories every day. Even though stories follow a standard ES6-based format, it can still be...
Read more >Reactjs: Ignore folder in eslint react - Copy Programming
Ignore folder in eslint react, ESLint ignore specific rule for a specific directory, Eslintignore is not ignoring my directory, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can pass config directory as a CLI option:
Alternatively, you can put this line to your
.eslintignore
file:And don’t forget to add the same line to
.prettierignore
if you’re using that!