Skip to content

gburning/eslint-plugin-storybook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-storybook

Eslint rules for Storybook Best Practices

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-storybook:

$ npm install eslint-plugin-storybook --save-dev

Usage

Add storybook to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "storybook"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "storybook/prefer-csf": "error"
    }
}

Supported Rules

  • prefer-csf: Display lint message when storiesOf API is used instead of the Component Story Format

About

Eslint Plugin for Storybook Best Practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%