Repository navigation
Replies: 1 comment 3 replies
|
The React rules work for Preact too, though you may want to toss in the signals plugin if you're using them. From there though, it's all personal preference which rules you enable. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
This is my config, which is for React.
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "unicorn", "oxc"],
"categories": {
"correctness": "error"
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
},
"env": {
"builtin": true
}
}
All reactions