Repository navigation
Make lint gate clean and add CI lint workflow - #17
Merged
Merged
Conversation
Mechanical eslint --fix output only (indent, quotes, semis, trailing spaces, eol-last, comma-dangle, spacing). Behavior unchanged; unit suite identical to baseline (346/4/242). Tracked lint problems 5548 (5483 err, 65 warn) -> 359 (294 err, 65 warn) across 68 tracked non-WIP js files; remainder needs manual fixes in the next commit.
Tracked-basis lint: 359 problems (294 err, 65 warn) -> 0 errors. No rules disabled. Unit suite unchanged (346/4/242). - .eslintrc.json: declare correct globals only — BaseElement replaces stale BaseWebComponent (base.js exposes it via globalThis), add ambient lib globals htmx and QRious, and a tests/integration override for karma-chai/karma-sinon globals (assert, sinon) - lint script now recurses src scripts tests (sh-glob missed tests/unit/components, tests/unit/css, and scripts/) - real fixes: drop dead locals/imports, _-prefix unused callback args, remove DatePicker test block (component has no implementation anywhere in the repo — block always threw ReferenceError), drop stale eslint-disable-line in tabs.js - .eslintignore: documented quarantine for 5 tracked files owned by a parallel workstream that must stay byte-identical (theme-toggle.js, mobile-*.spec.js, theme-switching.test.js); remove those entries once that workstream lands
New lint.yml runs npm run lint on push and PR to main/develop so eslint regressions fail the build. Mirrors the coverage.yml job structure (checkout, node 20 + npm cache, npm ci) but runs no browsers or test suites, keeping the gate cheap.
3 tasks
theme-toggle.js was already clean and theme-switching.test.js had only auto-fixable formatting plus one dead local; real fixes land them at 0 errors/0 warnings so tracked files stop hiding behind .eslintignore.
The review flagged quarantining tracked files as a Major because the exclusion could silently grow or persist. Pin the allowlist to exactly the three issue #14 mobile specs and name the owner in .eslintignore so any extra entry fails tests/unit/infra/eslint-quarantine.test.js.
Left over from the removed DatePicker describe; nothing references the fixtures.datePicker markup, so the unused <date-picker> block is dead weight in the integration suite.
This was referenced Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #13 — makes the eslint gate green (tracked files, 0 errors) and wires lint into CI. One commit per plan row.
Lint state before → after (tracked basis:
git ls-files '*.js')origin/develop)Commits
1e8684cstyle: apply eslint autofixes to src and tests — mechanicaleslint --fixon tracked files only (indent/quotes/semi/trailing spaces/eol/comma-dangle/spacing). No functional changes; diff is formatting-only: whitespace plus quote/const/comma-dangle style rewrites in 13 files (playwright.config.js,src/dry2/countdown.js:123,tests/unit/components/code.test.js×29, and others). 5548 → 359 problems.ab13600fix: resolve remaining eslint errors and warnings — 359 → 0 errors. No rules disabled anywhere:.eslintrc.jsoncorrections (env/globals only):BaseElementreplaces staleBaseWebComponent(base.js deliberately exposes it viaglobalThis.BaseElement), ambient library globalshtmx+QRious, and atests/integration/**override for karma-chai/karma-sinon globals (assert,sinon).eslint src scripts tests— the oldsrc/**/*.js tests/**/*.jssh-glob silently missedtests/unit/components/,tests/unit/css/, andscripts/._-prefixed (existingargsIgnorePattern: ^_convention), staleeslint-disable-linecomments dropped in tabs.js, and the deadDatePickerdescribe block removed fromtests/integration/web-components.test.js(no DatePicker implementation exists anywhere in the repo — the block always threwReferenceErrorin karma)..eslintignore: documented quarantine (see below).eafd5dfci: add lint gate to GitHub Actions — new.github/workflows/lint.ymlrunsnpm ci+npm run linton push/PR to main/develop, mirroring coverage.yml job structure but no browsers.Review-fix round (PR review findings)
080c31efix: un-quarantine theme files (M1a) —src/dry2/theme-toggle.jswas already clean;tests/unit/css/theme-switching.test.jsneeded only auto-fixable formatting plus one dead local. Both now carry 0 errors/0 warnings and are removed from the.eslintignorequarantine.5671487test: pin eslint quarantine allowlist (M1b) — the threetests/e2e/mobile-{button,card,tabs}.spec.jsentries stay quarantined under their owner: issue P1: Playwright e2e 64 failures on chore/drop-tailwind-cdn (select/visual/mobile) #14 is functionally rewriting these specs and will fix their lint and un-quarantine them when it lands.tests/unit/infra/eslint-quarantine.test.jspins the allowlist to exactly those 3 paths and names any extra or missing entry.47bdf99chore: drop dead datepicker fixture (N2) — removed the unusedfixtures.datePickerblock (the date-picker sample markup) left over from the removed DatePicker describe; nothing referenced it.Test plan
npm run test:unit: 346 passing / 4 pending / 242 failing — byte-identical counts to the develop baseline (pre-existingexpect is not definedfailures intests/unit/components/*, out of scope for P2: npm run lint reports 3750 problems (gate red) #13).eafd5df, measured in isolated worktrees: +2 passing / 0 new failures (exactly the two new quarantine tests; failing set byte-identical at 243). Absolute counts are environment-sensitive (dev-server/build watcher tests): 316/4/243 ateafd5dfvs 318/4/243 at the round head on this runner; the delta is the invariant.npx eslint $(git ls-files '*.js'): 0 errors (3 "File ignored" quarantine notices, exit 0).npx eslinton every file changed in this PR: clean.git diffover the parallel-workstream WIP list is empty and md5 checksums match pre-branch values (files byte-identical).coverage.ymlsteps.Notes on untracked-local-WIP noise
Locally,
npm run lintcurrently reports 880 problems — all inside 3 untracked local WIP files outside repo truth (tests/a11y.test.js,tests/unit/form-showcase.test.js,tests/visual-regression.test.js). Verified the problem-file list is exactly those 3 files. CI on a clean checkout is green since they are not in git.Documented exclusions (temporary)
After the review-fix round,
.eslintignorequarantines 3 tracked files, all owned by issue #14 (functionally rewriting the mobile e2e specs):tests/e2e/mobile-button.spec.js,tests/e2e/mobile-card.spec.js,tests/e2e/mobile-tabs.spec.js. The theme files previously quarantined (src/dry2/theme-toggle.js,tests/unit/css/theme-switching.test.js) are fixed and un-quarantined. The allowlist is pinned bytests/unit/infra/eslint-quarantine.test.js, which fails with a named diff if any entry is added or if an entry persists past its owner. Follow-up: issue #14 fixes lint in those specs and removes the entries (the pin test goes away with them).