Skip to content

Commit f67c06e

Browse files
committed
update README [skip-ci]
1 parent 3f75087 commit f67c06e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,19 @@ export default [
135135
]
136136
```
137137

138+
In case you are using utility functions from tools like `tseslint`, you might need to set the plugin a little differently:
139+
140+
```ts
141+
import storybook from "eslint-plugin-storybook";
142+
143+
import somePlugin from 'some-plugin';
144+
import tseslint from 'typescript-eslint';
145+
export default tseslint.config(
146+
somePlugin,
147+
storybook.configs["flat/recommended"] // notice that it is not destructured
148+
);"
149+
```
150+
138151
#### Overriding/disabling rules
139152

140153
Optionally, you can override, add or disable rules settings. You likely don't want these settings to be applied in every file, so make sure that you add a flat config section in your `eslint.config.[m|c]?js` file that applies the overrides only to your stories files.

0 commit comments

Comments
 (0)