@@ -40,7 +40,7 @@ export default [
40
40
" react-refresh" : reactRefresh,
41
41
},
42
42
rules: {
43
- " react-refresh/only-export-components" : " warn " ,
43
+ " react-refresh/only-export-components" : " error " ,
44
44
},
45
45
},
46
46
];
@@ -52,7 +52,7 @@ export default [
52
52
{
53
53
" plugins" : [" react-refresh" ],
54
54
" rules" : {
55
- " react-refresh/only-export-components" : " warn "
55
+ " react-refresh/only-export-components" : " error "
56
56
}
57
57
}
58
58
```
@@ -134,7 +134,7 @@ Example for [Remix](https://remix.run/docs/en/main/discussion/hot-module-replace
134
134
``` json
135
135
{
136
136
"react-refresh/only-export-components" : [
137
- " warn " ,
137
+ " error " ,
138
138
{ "allowExportNames" : [" meta" , " links" , " headers" , " loader" , " action" ] }
139
139
]
140
140
}
@@ -151,7 +151,7 @@ This should be enabled if the fast refresh implementation correctly handles this
151
151
``` json
152
152
{
153
153
"react-refresh/only-export-components" : [
154
- " warn " ,
154
+ " error " ,
155
155
{ "allowConstantExport" : true }
156
156
]
157
157
}
@@ -172,6 +172,6 @@ If your using JSX inside `.js` files (which I don't recommend because it forces
172
172
173
173
``` json
174
174
{
175
- "react-refresh/only-export-components" : [" warn " , { "checkJS" : true }]
175
+ "react-refresh/only-export-components" : [" error " , { "checkJS" : true }]
176
176
}
177
177
```
0 commit comments