1. @storybook/eslint-config-storybook
tiny wrapper because eslint really really wants a package name that contains eslint-config-
@storybook/eslint-config-storybook
Package: @storybook/eslint-config-storybook
Created by: storybookjs
Last modified: Thu, 02 May 2024 09:07:02 GMT
Version: 4.0.0
License: MIT
Downloads: 62,101
Repository: https://github.com/storybookjs/eslint-config-storybook

Install

npm install @storybook/eslint-config-storybook
yarn add @storybook/eslint-config-storybook

@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"
  }
}

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code