angular/goldens/public-api/compiler-cli
Kristiyan Kostadinov a2e4ee0cb3 feat(compiler): add diagnostic for unused standalone imports (#57605)
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
2024-09-03 14:30:56 -07:00
..
compiler_options.api.md refactor(compiler): add i18nPreserveWhitespaceForLegacyExtraction (#56507) 2024-08-27 13:13:56 -07:00
error_code.api.md feat(compiler): add diagnostic for unused standalone imports (#57605) 2024-09-03 14:30:56 -07:00
extended_template_diagnostic_name.api.md feat(compiler): add diagnostic for unused standalone imports (#57605) 2024-09-03 14:30:56 -07:00