question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.storybook folder is a dotfile and ignored by default by eslint

See original GitHub issue

currently 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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

60reactions
Hypnosphicommented, Oct 27, 2017

You can pass config directory as a CLI option:

start-storybook -c my-storybook-dir

Alternatively, you can put this line to your .eslintignore file:

!.storybook
0reactions
bsgreenbcommented, Apr 24, 2020

And don’t forget to add the same line to .prettierignore if you’re using that!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found