Increase flexibility of --noUnusedParameters #12149
Labels
Suggestion
An idea for TypeScript
Too Complex
An issue which adding support for may be too complex for the value it adds
As per #9458 (comment): relying on
_
prefixes as a naming convention can be suboptimal for a few reasons:I jumped the gun a bit and sent PR #12139 :) that blindly allows unused parameters before used ones. Perhaps a more complete design would be to provide configurations for
--noUnusedParameters
?tsc --noUnusedParameters
_
prefixes:tsc --noUnusedParameters allow-prefixed
tsc --noUnusedParameters allow-before-used
_
prefixes and those before used ones:tsc --noUnusedParameters allow-prefixed --noUnusedParameters allow-before-used
The text was updated successfully, but these errors were encountered: