Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ This allows for this plugin to also lint your configuration files inside the .st

> For more info on why this line is required in the .eslintignore file, check this [ESLint documentation](https://eslint.org/docs/latest/use/configure/ignore-deprecated#:~:text=In%20addition%20to,contents%20are%20ignored).
Copy link
Member

Choose a reason for hiding this comment

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

nit: to make sure that the legacy/flat config snippets stay side by side,

  • I would move this callout and the paragraph before, to place them after the flat config example
  • I would rework the wording to say "For more info on why this line is required in the .eslintignore file or the ignores object, ..."


If you are using [flat config style](https://eslint.org/docs/latest/use/configure/configuration-files-new), add this to your configuration file:
If you are using [flat config style](https://eslint.org/docs/latest/use/configure/configuration-files-new), add this to your configuration file instead:

```js
export default [
// ...
{
// Inside your .eslintignore file
ignores: ['!.storybook'],
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ignores: ['!.storybook'],
// Replaces your .eslintignore file
ignores: ['!.storybook'],

Copy link
Member

Choose a reason for hiding this comment

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

It may be worth reminding people that ignores comes instead of eslintignore.

},
]
Expand Down