Skip to content

fix: make web lint script self-contained (#305)#333

Merged
marccampbell merged 1 commit into
mainfrom
feat/web-lint-self-contained
Jun 2, 2026
Merged

fix: make web lint script self-contained (#305)#333
marccampbell merged 1 commit into
mainfrom
feat/web-lint-self-contained

Conversation

@elasticclaw-marc

Copy link
Copy Markdown
Contributor

Follow-up from PR #297.

Problem:
web/package.json exposes npm run lint as eslint ., but eslint is not declared as a dependency. A clean install fails unless eslint is globally installed or hoisted externally.

Changes:

  • Add eslint and eslint-config-next as devDependencies in web/package.json
  • Add web/eslint.config.mjs flat config using the standard Next.js preset
  • Add npm run lint step to the CI web build job in .depot/workflows/test.yaml

Verification:

  • Clean install in a fresh temp directory: npm install succeeds, npm run lint runs without "command not found" errors
  • The lint script finds existing issues in the codebase (34 pre-existing problems) — this PR only makes the script self-contained, it does not fix pre-existing lint errors

Fixes #305

@elasticclaw-marc elasticclaw-marc Bot force-pushed the feat/web-lint-self-contained branch from 07c262d to 68621eb Compare June 2, 2026 19:40
@greptile-apps

greptile-apps Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "fix: make web lint script self-contained" | Re-trigger Greptile

@greptile-apps

greptile-apps Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "fix: make web lint script self-contained" | Re-trigger Greptile

Comment thread .depot/workflows/test.yaml Outdated
Comment thread web/eslint.config.mjs
- Add eslint and eslint-config-next as devDependencies in web/package.json
- Add eslint.config.mjs flat config using eslint-config-next preset
- Add lint step to CI web build job

Fixes #305
@elasticclaw-marc elasticclaw-marc Bot force-pushed the feat/web-lint-self-contained branch from 68621eb to 2368579 Compare June 2, 2026 19:49
@greptile-apps

greptile-apps Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Reviews (3): Last reviewed commit: "fix: make web lint script self-contained" | Re-trigger Greptile

@marccampbell marccampbell merged commit a35d1f7 into main Jun 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make web lint script self-contained

1 participant