noRestrictedTypes
このコンテンツはまだ日本語訳がありません。
Diagnostic Category: lint/nursery/noRestrictedTypes
Since: v1.9.0
Sources:
Disallow user defined types.
This rule allows you to specify type names that you don’t want to use in your application.
To prevent use of commonly misleading types, you can refer to noBannedTypes
Options
Section titled OptionsUse the options to specify additional types that you want to restrict in your source code.
In the example above, the rule will emit a diagnostics if Foo
or OldAPI
are used.