ESLint Fixes #27
Reference in New Issue
Block a user
Delete Branch "adilallo/maintenance/ESLintFixes"
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?
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
lintjob in Gitea Actions.Changes
args, duplicate imports, etc.)lib/logger.tsconsole.*usage in runtime code (app/+lib/) withlogger.*eslint.config.mjsto error onconsole.*inapp/+lib/, while allowing console intests/,stories/,scripts/lintjob in.gitea/workflows/ci.yamlprettier --checkpasses in CIpackage.jsonlintscript to allow warnings (warnings still visible in output)Screenshots
How to Test
npm cinpm run lintnpm exec prettier -- --check "**/*.{js,jsx,ts,tsx,json,css,md}"npm test -- --runnpm run e2eNotes
no-img-element,any), but CI now blocks on ESLint errors again.logger.debugis dev-only;info/warn/erroralways emit.