angular/packages/compiler-cli/test/ngtsc
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
..
doc_extraction refactor(compiler-cli): Add support for inheritance in API extraction (#57588) 2024-09-03 07:47:24 -07:00
authoring_diagnostics_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
authoring_inputs_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
authoring_models_spec.ts feat(core): support TypeScript 5.6 (#57424) 2024-08-19 22:45:45 -07:00
authoring_outputs_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
authoring_queries_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
BUILD.bazel test: replace fake_core with real @angular/core output (#54650) 2024-03-06 12:34:38 +01:00
component_indexing_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
defer_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
env.ts refactor(compiler-cli): Add a map of every symbols used inside a package (#57346) 2024-08-29 13:39:58 -07:00
extended_template_diagnostics_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
host_directives_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
imports_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
incremental_error_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
incremental_semantic_changes_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
incremental_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
incremental_typecheck_spec.ts feat(core): support TypeScript 5.6 (#57424) 2024-08-19 22:45:45 -07:00
local_compilation_spec.ts fix(compiler): reduce chance of conflicts between generated factory and local variables (#57181) 2024-08-07 17:25:05 +00:00
ls_typecheck_helpers_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
monorepo_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
ngtsc_spec.ts fix(compiler): reduce chance of conflicts between generated factory and local variables (#57181) 2024-08-07 17:25:05 +00:00
scope_spec.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
sourcemap_utils.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
standalone_spec.ts feat(compiler): add diagnostic for unused standalone imports (#57605) 2024-09-03 14:30:56 -07:00
template_mapping_spec.ts build: update to TypeScript 5.5 stable (#56358) 2024-06-25 09:29:16 -07:00
template_typecheck_spec.ts feat(compiler): add diagnostic for unused standalone imports (#57605) 2024-09-03 14:30:56 -07:00
util.ts refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
xi18n_spec.ts refactor(compiler): add handler attribute to XMB output (#54865) 2024-04-29 11:56:31 -07:00