(eslint-plugin): Propose updater-explicit-type-parameter
ComponentStore rule
#4754
Open
1 of 2 tasks
Labels
Which @ngrx/* package(s) are relevant/related to the feature request?
eslint-plugin
Information
I would like to suggest/contribute a ComponentStore ESLint rule. It would be an opt-in rule as it is a stylistic choices. What do you think?
updater-explicit-type-parameter
Updater
should have a type parameter.Rule Details
To have consistent code, we should explicitly add a type parameter.
Examples of incorrect code for this rule:
Value parameter type
No value parameter type
Examples of correct code for this rule:
Value parameter type
No value parameter type
Describe any alternatives/workarounds you're currently using
Without a lint rule enforcing one style, a codebase could have different variations of updater type definitions.
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: