chore: remove unused imports in the frontend #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "robinp2000/chore/frontend-lint-unused-imports"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Remove 34 imported names in 15 files that ESLint reports as unused
(
@typescript-eslint/no-unused-vars). Only import statements change.Why
Part of bringing
npm run lintto zero so that it can be enforced in CI.A name that is not referenced in the TypeScript is not in the component's
importsarray either, so removing its import does not change behavior. Thetemplates of the affected components were checked for attribute directives
(
routerLink,mat-button,mat-icon-button,matInput,mat-dialog-title)that would silently stop working; there are none.
Tests
ng buildsucceeds.npm run format:checkpasses.npm run lintfindings: 91 -> 57.