Documentation
Presets

Presets

⚠️

Note:
Presets with -type-checked or type-checked-legacy suffix require type information.
Make sure the parserOptions.project option is set correctly in your ESLint config when using them.

The following presets are available in this plugin:

  • recommended-legacy (plugin:@eslint-react/recommended-legacy)
    Enforce recommended rules designed to catch common mistakes and prevent potential bugs.
  • recommended-type-checked-legacy (plugin:@eslint-react/recommended-type-checked-legacy)
    Same as recommended-legacy but with additional rules that require type information.
  • debug-legacy (plugin:@eslint-react/debug-legacy)
    Enable a series of rules that are useful for debugging purposes only.
    (Not recommended unless you know what you are doing)
  • all-legacy (plugin:@eslint-react/all-legacy)
    Enable all rules in this plugin except for debug rules.
  • off-legacy (plugin:@eslint-react/off-legacy)
    Disable all rules in this plugin except for debug rules.