-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
I would like to have a more general version of @typescript-eslint/no-angle-bracket-type-assertion
, maybe called type-assertion
. It would have two options, that can be enabled independently:
no-angle-bracket
: If this is enabled, angle bracket type assertions are disallowed.
no-as
: If this is enabled, as
type assertions are disallowed.
This would allow different use cases. Some people like to use the old assertions instead of the new ones. Personally, I would like to lint all type casting since they introduce unsafety.
The default behaviour would be ['no-angle-bracket']
to match the current situation. If no options are enabled, the lint could warn that the lint can be disabled.
j-f1, adidahiya and uhyosindresorhus and worldeggplant
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin