forked from cartant/eslint-plugin-rxjs
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Right now default options for each rule is scattered in several places:
- a
defaultOptionsvariable declared at the top of the file defaultvalues in themeta.schemaso thateslint-doc-generatorcan read the defaults- when reading the config within the rule's
create, we also default each value again e.g.const { allowThrowingAny = true, allowThrowingUnknown = true } = config;
ESLint 9.15 added a new meta.defaultOptions field, which typescript-eslint added support for in 8.15. We should investigate that field and see if it's suitable for consolidating our default options for each rule. We'll need to consider backward compatibility; does defaultOptions work in earlier versions of ESLint? And/or can we raise the minimum required ESLint version?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request