-
-
Notifications
You must be signed in to change notification settings - Fork 33
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.schemais defined and not just[]andmeta.defaultOptionsis not defined - if
meta.schema === []butmeta.defaultOptionsis defined - if
meta.defaultOptionsis not an array - if
meta.defaultOptionsis an empty array (Only exception in the core ESLint repo is theid-denylistrule, 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.)
JoshuaKGoldberg and lishaduck
Metadata
Metadata
Assignees
Labels
No labels