We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55d0d2 commit 9594a20Copy full SHA for 9594a20
README.md
@@ -30,6 +30,24 @@ npm i -D eslint-plugin-react-refresh
30
}
31
```
32
33
+### Flat config
34
+
35
+```js
36
+import reactRefresh from "eslint-plugin-react-refresh";
37
38
+export default [
39
+ {
40
+ // in main config for TSX/JSX source files
41
+ plugins: {
42
+ "react-refresh": reactRefresh,
43
+ },
44
+ rules: {
45
+ "react-refresh/only-export-components": "warn",
46
47
48
+];
49
+```
50
51
## Fail
52
53
```jsx
0 commit comments