angular/packages/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
..
integrationtest fix(core): link errors to ADEV (#55554) (#56038) 2024-05-28 12:50:53 +02:00
linker feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
ngcc refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
private refactor(migrations): use common import manager for schematics (#57096) 2024-07-23 12:17:41 -07:00
src feat(compiler): add diagnostic for unused standalone imports (#57605) 2024-09-03 14:30:56 -07:00
test feat(compiler): add diagnostic for unused standalone imports (#57605) 2024-09-03 14:30:56 -07:00
BUILD.bazel refactor(compiler-cli): move JIT transforms into ngtsc (#56892) 2024-07-10 17:29:20 +02:00
esbuild.config.js refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
index.ts refactor(compiler-cli): move JIT transforms into ngtsc (#56892) 2024-07-10 17:29:20 +02:00
package.json feat(core): drop support for TypeScript 5.4 (#57577) 2024-08-29 10:19:20 -07:00
tsconfig-build.json refactor(compiler-cli): dismantle View Engine implementation of ngc (#44269) 2021-12-01 10:36:30 -08:00
tsconfig.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00