Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@storybook/eslint-config-storybook

storybookjs65.3kMIT4.0.0

tiny wrapper because eslint really really wants a package name that contains eslint-config-

eslint, storybook, config

readme

@storybook/eslint-config-storybook

Thin wrapper around our @storybook/linter-config package, because eslint really really likes this package name for discoverability.

Installation

You'll first need to install ESLint:

# npm
npm install eslint --save-dev

# yarn
yarn add eslint --dev

Next, install @storybook/eslint-config-storybook:

# npm
npm install @storybook/eslint-config-storybook --save-dev

# yarn
yarn add @storybook/eslint-config-storybook --dev

Usage

Add @storybook/eslint-config-storybook to the extends section of your .eslintrc configuration file.

{
  "extends": ["@storybook/eslint-config-storybook"]
}

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

{
  "rules": {
    "react/prop-types": "off"
  }
}

changelog

v3.0.0 (Mon Jan 15 2024)

💥 Breaking Change

🐛 Bug Fix

⚠️ Pushed to master

🔩 Dependency Updates

Authors: 5