ESLint Fixes #27

Merged
an.di merged 4 commits from adilallo/maintenance/ESLintFixes into main 2026-01-28 19:44:05 +00:00
Owner

Fix ESLint in CI (resolve lint errors, standardize logging, re-enable lint job)

Overview

This PR resolves the remaining ESLint errors so the runner can enforce linting again. It also standardizes console usage via a small logger wrapper, and re-enables the lint job in Gitea Actions.

Changes

  • ESLint: fixed remaining lint errors across tests/stories/scripts (missing imports, unused vars/params, Storybook args, duplicate imports, etc.)
  • Logging:
    • Added lib/logger.ts
    • Replaced console.* usage in runtime code (app/ + lib/) with logger.*
    • Updated eslint.config.mjs to error on console.* in app/ + lib/, while allowing console in tests/, stories/, scripts/
  • CI: re-enabled lint job in .gitea/workflows/ci.yaml
  • Formatting: ran Prettier so prettier --check passes in CI
  • Lint script: updated package.json lint script to allow warnings (warnings still visible in output)

Screenshots

How to Test

  1. npm ci
  2. npm run lint
  3. npm exec prettier -- --check "**/*.{js,jsx,ts,tsx,json,css,md}"
  4. npm test -- --run
  5. npm run e2e

Notes

  • Lint warnings remain (e.g. no-img-element, any), but CI now blocks on ESLint errors again.
  • logger.debug is dev-only; info/warn/error always emit.
# Fix ESLint in CI (resolve lint errors, standardize logging, re-enable lint job) ## Overview This PR resolves the remaining ESLint errors so the runner can enforce linting again. It also standardizes console usage via a small logger wrapper, and re-enables the `lint` job in Gitea Actions. ## Changes - ESLint: fixed remaining lint errors across tests/stories/scripts (missing imports, unused vars/params, Storybook `args`, duplicate imports, etc.) - Logging: - Added `lib/logger.ts` - Replaced `console.*` usage in runtime code (`app/` + `lib/`) with `logger.*` - Updated `eslint.config.mjs` to error on `console.*` in `app/` + `lib/`, while allowing console in `tests/`, `stories/`, `scripts/` - CI: re-enabled `lint` job in `.gitea/workflows/ci.yaml` - Formatting: ran Prettier so `prettier --check` passes in CI - Lint script: updated `package.json` `lint` script to allow warnings (warnings still visible in output) ## Screenshots <!-- Add image tags if visual changes exist, otherwise leave this section empty --> ## How to Test 1. `npm ci` 2. `npm run lint` 3. `npm exec prettier -- --check "**/*.{js,jsx,ts,tsx,json,css,md}"` 4. `npm test -- --run` 5. `npm run e2e` ## Notes - Lint warnings remain (e.g. `no-img-element`, `any`), but CI now blocks on ESLint errors again. - `logger.debug` is dev-only; `info/warn/error` always emit.
an.di self-assigned this 2026-01-28 19:13:55 +00:00
an.di added 4 commits 2026-01-28 19:13:56 +00:00
Adjust tests after fixing ESLint
CI Pipeline / test (20) (pull_request) Successful in 6m20s
CI Pipeline / test (18) (pull_request) Successful in 9m25s
CI Pipeline / e2e (firefox) (pull_request) Successful in 4m14s
CI Pipeline / e2e (webkit) (pull_request) Successful in 4m29s
CI Pipeline / e2e (chromium) (pull_request) Successful in 14m33s
CI Pipeline / visual-regression (pull_request) Successful in 6m24s
CI Pipeline / performance (pull_request) Successful in 5m40s
CI Pipeline / storybook (pull_request) Successful in 2m20s
CI Pipeline / lint (pull_request) Successful in 1m55s
CI Pipeline / build (pull_request) Successful in 2m4s
29496dbaac
an.di merged commit e7a31789e3 into main 2026-01-28 19:44:05 +00:00
an.di deleted branch adilallo/maintenance/ESLintFixes 2026-01-28 19:44:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CommunityRule/community-rule#27