React
To configure oxlint for with our pre-configured React rules, simply add the following code to your oxlint configuration file (.oxlintrc.json):
Hint
oxlint's React plugin is not enabled by default. It needs to be enabled by adding it to plugins inside your configuration file (see our example below) to function properly.
.oxlintrc
json
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"react"
]
"extends": [
"./node_modules/@ogs-gmbh/oxlint-presets/react-recommended.json"
]
}