Skip to content

Commit

Permalink
docs: switch suggested severity from 'warn' to 'error' (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg authored Nov 27, 2024
1 parent 599b0fd commit 94c9d7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default [
"react-refresh": reactRefresh,
},
rules: {
"react-refresh/only-export-components": "warn",
"react-refresh/only-export-components": "error",
},
},
];
Expand All @@ -52,7 +52,7 @@ export default [
{
"plugins": ["react-refresh"],
"rules": {
"react-refresh/only-export-components": "warn"
"react-refresh/only-export-components": "error"
}
}
```
Expand Down Expand Up @@ -134,7 +134,7 @@ Example for [Remix](https://remix.run/docs/en/main/discussion/hot-module-replace
```json
{
"react-refresh/only-export-components": [
"warn",
"error",
{ "allowExportNames": ["meta", "links", "headers", "loader", "action"] }
]
}
Expand All @@ -151,7 +151,7 @@ This should be enabled if the fast refresh implementation correctly handles this
```json
{
"react-refresh/only-export-components": [
"warn",
"error",
{ "allowConstantExport": true }
]
}
Expand All @@ -172,6 +172,6 @@ If your using JSX inside `.js` files (which I don't recommend because it forces

```json
{
"react-refresh/only-export-components": ["warn", { "checkJS": true }]
"react-refresh/only-export-components": ["error", { "checkJS": true }]
}
```

0 comments on commit 94c9d7d

Please sign in to comment.