@storybook/eslint-config-storybook
Version:
tiny wrapper because eslint really really wants a package name that contains eslint-config-
46 lines (32 loc) • 824 B
Markdown
# /eslint-config-storybook
Thin wrapper around our /linter-config package, because eslint really really likes this package name for discoverability.
## Installation
You'll first need to install [ESLint](http://eslint.org):
```sh
# npm
npm install eslint --save-dev
# yarn
yarn add eslint --dev
```
Next, install `/eslint-config-storybook`:
```sh
# npm
npm install /eslint-config-storybook --save-dev
# yarn
yarn add /eslint-config-storybook --dev
```
## Usage
Add `/eslint-config-storybook` to the extends section of your `.eslintrc` configuration file.
```json
{
"extends": ["@storybook/eslint-config-storybook"]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"react/prop-types": "off"
}
}
```