Presets
The following presets are available in this plugin:
These presets are for ESLint Flat Config (eslint.config.js
) only.
- core
Enable rules that are renderer-agnostic. - dom
Enable rules that are specific to React DOM. - web-api
Enable rules for interacting with Web APIs. - recommended
Enable rules that are recommended by ESLint React.
This preset includes thecore
,dom
, andweb-api
presets. - recommended-typescript
Enable rules that are recommended by ESLint React and disable rules that can be covered by TypeScript.
This preset includes therecommended
preset. - recommended-type-checked
Enable rules that are recommended by ESLint React with additional rules that require type information.
This preset includes therecommended-typescript
preset. - disable-dom
Disable rules that are specific to React DOM. - disable-web-api
Disable rules for interacting with Web APIs. - disable-type-checked
Disable rules that require type information. - off
Disable all rules in this plugin except for debug rules.