File tree Expand file tree Collapse file tree 7 files changed +301
-24
lines changed
eslintrc/storybook/__snapshots__
flat/storybook/__snapshots__ Expand file tree Collapse file tree 7 files changed +301
-24
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ We also provide various other rule sets that you can configure to suit your proj
112
112
| ` next ` | Contains Next.js recommended rules | [ ` @next/eslint-plugin-next ` ] ( https://github.com/vercel/next.js/tree/canary/packages/eslint-plugin-next ) |
113
113
| ` node ` | Contains Node.js recommended rules | [ ` eslint-plugin-n ` ] ( https://github.com/eslint-community/eslint-plugin-n ) |
114
114
| ` react ` | Contains React recommended rules | [ ` eslint-plugin-jsx-a11y ` ] ( https://github.com/jsx-eslint/eslint-plugin-jsx-a11y ) <br > [ ` eslint-plugin-react-hooks ` ] ( https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks ) <br > [ ` eslint-plugin-react ` ] ( https://github.com/jsx-eslint/eslint-plugin-react ) |
115
- | ` storybook ` | Contains Storybook recommended rules | [ ` eslint-plugin-storybook ` ] ( https://github.com/storybookjs/eslint-plugin-storybook ) |
115
+ | ` storybook ` | Contains Storybook recommended rules | [ ` eslint-plugin-storybook ` ] ( https://github.com/storybookjs/storybook/tree/next/code/lib/ eslint-plugin ) |
116
116
| ` test/react ` | Contains Jest and React Testing Library rules | [ ` eslint-plugin-jest ` ] ( https://github.com/jest-community/eslint-plugin-jest ) <br > [ ` eslint-plugin-jest-dom ` ] ( https://github.com/testing-library/eslint-plugin-jest-dom ) <br > [ ` eslint-plugin-testing-library ` ] ( https://github.com/testing-library/eslint-plugin-testing-library ) |
117
117
| ` typescript ` | Contains TypeScript recommended rules | [ ` @eslint-typescript/eslint-plugin ` ] ( https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin ) <br > [ ` @eslint-typescript/parser ` ] ( https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser ) |
118
118
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ export default [
21
21
] ,
22
22
rules : {
23
23
'import/no-default-export' : [ 'off' ] ,
24
+
25
+ // Turn off this rule because type definitions such as `Meta` and `StoryObj` need to be imported from `@storybook/react`.
26
+ // https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
27
+ 'storybook/no-renderer-packages' : [ 'off' ] ,
24
28
} ,
25
29
} ,
26
30
] ;
Original file line number Diff line number Diff line change 62
62
"eslint-plugin-promise" : " ^7.2.1" ,
63
63
"eslint-plugin-react" : " ^7.37.2" ,
64
64
"eslint-plugin-react-hooks" : " ^5.0.0" ,
65
- "eslint-plugin-storybook" : " ^0.11.1 " ,
65
+ "eslint-plugin-storybook" : " ^9.0.4 " ,
66
66
"eslint-plugin-testing-library" : " ^7.0.0" ,
67
67
"eslint-plugin-unicorn" : " ^56.0.1" ,
68
68
"globals" : " ^15.11.0" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ module.exports = {
2
2
plugins : [ 'storybook' ] ,
3
3
extends : [ 'plugin:storybook/recommended' ] ,
4
4
rules : {
5
+ // Turn off this rule because type definitions such as `Meta` and `StoryObj` need to be imported from `@storybook/react`.
6
+ // https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
7
+ 'storybook/no-renderer-packages' : [ 'off' ] ,
8
+
5
9
// `storiesOf` is deprecated and should not be used
6
10
// https://github.com/storybookjs/eslint-plugin-storybook/blob/main/docs/rules/no-stories-of.md
7
11
// Since Storybook 5.2, the CSF format was introduced and the storiesOf API has been deprecated.
Original file line number Diff line number Diff line change @@ -2443,6 +2443,9 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = `
2443
2443
" storybook/no-redundant-story-name" : [
2444
2444
1 ,
2445
2445
],
2446
+ " storybook/no-renderer-packages" : [
2447
+ 0 ,
2448
+ ],
2446
2449
" storybook/no-stories-of" : [
2447
2450
2 ,
2448
2451
],
Original file line number Diff line number Diff line change @@ -2672,6 +2672,9 @@ exports[`ESLint Configuration Snapshot Tests should match ESLint Flat Configurat
2672
2672
" storybook/no-redundant-story-name" : [
2673
2673
1 ,
2674
2674
],
2675
+ " storybook/no-renderer-packages" : [
2676
+ 0 ,
2677
+ ],
2675
2678
" storybook/no-stories-of" : [
2676
2679
2 ,
2677
2680
],
You can’t perform that action at this time.
0 commit comments