Skip to content

chore(ui): remove the unused ESLint and Prettier toolchain - #620

Merged
jsenecal merged 4 commits into
mainfrom
chore/618-drop-eslint-prettier
Nov 25, 2026
Merged

jsenecal merged 4 commits into
mainfrom
chore/618-drop-eslint-prettier

Conversation

@jsenecal

Copy link
Copy Markdown
Collaborator

Closes #618

The UI lints and formats with Biome, so this removes the ESLint and Prettier toolchain that nothing used any more.

What nothing depended on

  • No package.json script, CI workflow, Dockerfile step, CONTRIBUTING section, doc page, husky or lint-staged setup calls ESLint or Prettier. .vscode/settings.json and the root biome.json refer only to Biome.
  • The config files were dead: .eslintrc-delete.js and .eslintignore-delete had been renamed so ESLint would not find them, and Prettier was never run.
  • next build (Next 15.5.28) runs its own ESLint step unless eslint.ignoreDuringBuilds is set. That step looks for an ESLint config up through parent directories, so a stray .eslintrc* above the runtime build workspace would fail the build with "ESLint must be installed". next.config.js already sets the flag, so it stays, with a comment saying why. The build output shows "Skipping linting".

Changes

  • Remove eslint, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, babel-eslint, eslint-config-prettier, eslint-import-resolver-typescript, the six eslint-plugin-* packages, prettier and prettier-eslint from devDependencies.
  • Delete .eslintrc-delete.js, .eslintignore-delete, .prettierrc and .prettierignore.
  • Delete the eslint-disable comments. Biome never read them, and none needed a Biome equivalent: useExhaustiveDependencies and noBannedTypes are off in biome.json, and the hooks-order, no-console and jsx-key rules are not in Biome 1.5.3's recommended set. pnpm run lint stays clean without them. Where a marker covered a deliberate choice, a plain comment now explains it: react-table supplies row and cell keys through get*Props(), the provider fixes the config and theme at first render, and form.queryType triggers a re-run of getDirective().
  • Remove the pnpm-workspace.yaml overrides for ajv, brace-expansion, braces, cross-spawn, js-yaml, micromatch, minimatch and picomatch (its <2.3.2 range). Only ESLint pulled in these versions. pnpm why finds none of the other packages, and the only picomatch left is 4.0.7 (through vite), outside that range.
  • Change the taskipy help for ui-format and ui-lint from Prettier and ESLint to Biome, and the pnpm task's help from yarn to pnpm.

The lockfile was regenerated with pnpm 11.28.11, the version CI and the Dockerfile use. It only loses entries: 259 packages go, and no package is added or changes version.

Checks

In hyperglass/ui: pnpm test (1076 passed), pnpm run format:check, pnpm run lint, tsc --noEmit and next build with static export all pass. The backend suite passes too (4670 passed, 4 skipped).

The UI lints and formats with Biome. Drop the ESLint and Prettier
devDependencies, their leftover config files and the eslint directive
comments, none of which Biome reads. Biome already disables the rules
those comments silenced, or they are not in its recommended set.

Drop the pnpm-workspace overrides for ajv, brace-expansion, braces,
cross-spawn, js-yaml, micromatch and minimatch: only ESLint pulled them
in and pnpm why no longer finds them.

Keep eslint.ignoreDuringBuilds in next.config.js so next build skips
its own ESLint step, and point the taskipy help text at Biome.

Refs #618
Drop the picomatch@<2.3.2 override: picomatch 2.x only came in through
the ESLint tree, and only 4.0.7 remains.

Explain in plain comments what the removed eslint markers covered: the
keys react-table supplies through get*Props(), the config and theme
fixed at first render, and form.queryType as a re-run trigger for
getDirective(). Give the real reason next build keeps
eslint.ignoreDuringBuilds: Next looks for an ESLint config up through
parent directories. Fix the pnpm task help and the changelog wording.

Refs #618
@github-actions github-actions Bot added backend Python backend: API, models, state, execution frontend Next.js UI and the runtime UI build labels Nov 25, 2026
@coveralls

coveralls commented Nov 25, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 89.198%. remained the same — chore/618-drop-eslint-prettier into main

@jsenecal
jsenecal marked this pull request as ready for review November 25, 2026 20:24
@jsenecal
jsenecal requested a review from WilhelmZA November 25, 2026 20:24

@WilhelmZA WilhelmZA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 24a632d0.

GitHub marks the head merge commit as unverified because the commit email is not verified. Please recreate the merge commit using a verified commit email, sign it, and push again. Every commit must show as verified before approval.

@WilhelmZA WilhelmZA added dependencies Pull requests that update a dependency file docs Improve documentation reviewing Issue is being reviewed by maintainers labels Nov 25, 2026
@jsenecal
jsenecal force-pushed the chore/618-drop-eslint-prettier branch from 24a632d to db47550 Compare November 25, 2026 20:45
@jsenecal

Copy link
Copy Markdown
Collaborator Author

Thanks. The merge commit was made with a wrong local commit email. It's recreated with the verified address and signed, with the same parents and the same tree, so the content is unchanged. The new head is db475506, and every commit on this PR now shows as verified.

@jsenecal
jsenecal requested a review from WilhelmZA November 25, 2026 20:45

@WilhelmZA WilhelmZA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving at db475506.

Checked the toolchain removal, lockfile and CI; all commits now verify.

@jsenecal
jsenecal merged commit 486a89f into main Nov 25, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Python backend: API, models, state, execution dependencies Pull requests that update a dependency file docs Improve documentation frontend Next.js UI and the runtime UI build reviewing Issue is being reviewed by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the unused ESLint and Prettier toolchain from the UI

3 participants