Menu
eslint-config-sc-storybook#
This package sets some rules based on the shared config of eslint-plugin-storybook.
Usage#
Installation#
1$ npm i -D eslint-config-sc-storybook
Setup#
1// eslint.config.mjs
2import eslintConfigSCStorybook from "eslint-config-sc-storybook"
3
4return [
5 [/* other rules for product code */],
6 eslintConfigSCStorybook.configs.recommended,
7].flat()
Equally
1// eslint.config.mjs
2import eslintConfigSCStorybook from "eslint-config-sc-storybook"
3
4return [
5 [/* other rules for product code */],
6 eslintConfigSCStorybook.configs.storybookConfigRecords,
7 eslintConfigSCStorybook.configs.overrideJavascriptRecord, // for javascript project
8 eslintConfigSCStorybook.configs.overrideTypescriptRecord, // for typescript project
9].flat()