mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Adds a new diagnostic that will report cases where a declaration is in the `imports` array, but isn't being used anywhere. The diagnostic is reported as a warning by default and can be controlled using the following option in the tsconfig:
```
{
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"unusedStandaloneImports": "suppress"
}
}
}
}
```
**Note:** I'll look into a codefix for the language service in a follow-up.
Fixes #46766.
PR Close #57605
|
||
|---|---|---|
| .. | ||
| compiler_options.api.md | ||
| error_code.api.md | ||
| extended_template_diagnostic_name.api.md | ||