chore: fix mechanical ESLint findings in the frontend #24

Merged
robinp2000 merged 1 commit from robinp2000/chore/frontend-lint-mechanical into main 2026-10-18 16:57:42 +02:00 AGit
Owner

What

Apply the ESLint autofixes for four rules and re-run Prettier:

  • prefer-const (34)
  • @typescript-eslint/no-inferrable-types (5)
  • @typescript-eslint/prefer-function-type (1)
  • @typescript-eslint/consistent-indexed-object-style (1)

Why

First of several PRs that bring npm run lint to zero so that it can be
enforced in CI. Only fixers without behavioral impact are applied here. The
other autofixers (template/no-autofocus, use-lifecycle-interface,
no-wrapper-object-types) were switched off for this run and follow separately.

Tests

  • ng build succeeds.
  • npm run format:check passes.
  • npm run lint findings: 132 -> 91.
  • The frontend has no unit tests.
## What Apply the ESLint autofixes for four rules and re-run Prettier: - `prefer-const` (34) - `@typescript-eslint/no-inferrable-types` (5) - `@typescript-eslint/prefer-function-type` (1) - `@typescript-eslint/consistent-indexed-object-style` (1) ## Why First of several PRs that bring `npm run lint` to zero so that it can be enforced in CI. Only fixers without behavioral impact are applied here. The other autofixers (`template/no-autofocus`, `use-lifecycle-interface`, `no-wrapper-object-types`) were switched off for this run and follow separately. ## Tests - `ng build` succeeds. - `npm run format:check` passes. - `npm run lint` findings: 132 -> 91. - The frontend has no unit tests.
chore: fix mechanical ESLint findings in the frontend
All checks were successful
CI / lint (pull_request) Successful in 14s
CI / build (pull_request) Successful in 2m8s
1f99aa20c6
## What
Apply the ESLint autofixes for four rules and re-run Prettier:
- `prefer-const` (34)
- `@typescript-eslint/no-inferrable-types` (5)
- `@typescript-eslint/prefer-function-type` (1)
- `@typescript-eslint/consistent-indexed-object-style` (1)

## Why
First of several PRs that bring `npm run lint` to zero so that it can be
enforced in CI. Only fixers without behavioral impact are applied here. The
other autofixers (`template/no-autofocus`, `use-lifecycle-interface`,
`no-wrapper-object-types`) were switched off for this run and follow separately.

## Tests
- `ng build` succeeds.
- `npm run format:check` passes.
- `npm run lint` findings: 132 -> 91.
- The frontend has no unit tests.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
robinp2000/dachshund-auth-provider!24
No description provided.