Closed
Description
eslint/eslint#17656 added support for meta.defaultOptions
in rules. See also https://github.com/eslint/rfcs/blob/main/designs/2023-rule-options-defaults/README.md.
A new lint rule should report:
- if
meta.schema
is defined and not just[]
andmeta.defaultOptions
is not defined - if
meta.schema === []
butmeta.defaultOptions
is defined - if
meta.defaultOptions
is not an array - if
meta.defaultOptions
is an empty array (Only exception in the core ESLint repo is theid-denylist
rule, so maybe we should add an option to disable this check for certain rules? Or just be okay with having to add an ESLint disable comment for such cases.)
Metadata
Metadata
Assignees
Labels
No labels