Presets
The following presets are available in @eslint-react/eslint-plugin:
Bare Bones
x
Enable rules for"react".dom
Enable rules for"react-dom".web-api
Enable rules for interacting with Web APIs.
General Purpose
recommended
Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects.
This preset includes thex,dom, andweb-apipresets.
TypeScript Specialized
-
recommended-typescript
Same as therecommendedpreset but disables rules that can be enforced by TypeScript. -
recommended-type-checked
Same as therecommended-typescriptpreset but enables additional rules that require type information.
Combined
no-deprecated
Enable all non-deprecated rules from thex,dom, andweb-apipresets.
This preset sets the severity of these rules to"error".
Other
disable-dom
Disable rules in thedompreset.disable-web-api
Disable rules in theweb-apipreset.disable-type-checked
Disable rules that require type information.disable-conflict-eslint-plugin-react
Disable rules ineslint-plugin-reactthat conflict with rules in our plugins.off
Disable all rules in this plugin except for debug rules.