Skip to content

fix: resolve all ESLint errors across 8 packages#261

Merged
hotlong merged 2 commits intomainfrom
copilot/fix-build-and-test-again
Feb 12, 2026
Merged

fix: resolve all ESLint errors across 8 packages#261
hotlong merged 2 commits intomainfrom
copilot/fix-build-and-test-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 12, 2026

pnpm lint failed on 8 packages due to ESLint errors. Build and tests were already passing.

Lint fixes

  • prefer-constagent/orchestrator.ts, notification/email.ts: letconst for variables never reassigned
  • no-emptyautomation/plugin.ts: added comment to empty catch blocks
  • no-case-declarationsjobs/storage.ts, permissions/sharing-rules.ts: wrapped lexical declarations in case blocks with {}
  • no-useless-assignmentworkflow/stdlib.ts: removed redundant initializer (let message = ''let message: string)
  • no-undefapps/web/public/sw.js: added /* global self, caches, fetch, URL, Response */ for service worker globals

Site lint

Next.js 16 removed the next lint CLI subcommand. apps/site is already excluded in root eslint.config.mjs ignores, so replaced the broken script with a no-op echo.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectos Ready Ready Preview, Comment Feb 12, 2026 3:48pm
objectos-demo Error Error Feb 12, 2026 3:48pm

Request Review

- agent: use const for non-reassigned array variable (prefer-const)
- automation: add comment to empty catch blocks (no-empty)
- jobs: wrap case lexical declaration in block (no-case-declarations)
- notification: use const for non-reassigned variables (prefer-const)
- permissions: wrap case lexical declarations in blocks (no-case-declarations)
- workflow: remove useless initial assignment (no-useless-assignment)
- web: add global directive for service worker globals (no-undef)
- site: replace removed next lint command (Next.js 16 dropped lint subcommand)

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix build and test issues fix: resolve all ESLint errors across 8 packages Feb 12, 2026
Copilot AI requested a review from hotlong February 12, 2026 14:47
@hotlong hotlong marked this pull request as ready for review February 12, 2026 15:08
Copilot AI review requested due to automatic review settings February 12, 2026 15:08
@hotlong hotlong merged commit d4c3e5e into main Feb 12, 2026
1 of 3 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR resolves ESLint errors that were preventing pnpm lint from passing across 8 packages. All changes are purely lint fixes with no logic modifications - converting variables to const where they're never reassigned, adding block scoping to case statements with lexical declarations, adding comments to empty catch blocks, removing redundant initializers, and declaring service worker globals.

Changes:

  • Fixed prefer-const violations by changing let to const for variables that are never reassigned
  • Fixed no-case-declarations violations by wrapping case block lexical declarations with {}
  • Fixed no-empty violations by adding explanatory comments to empty catch blocks
  • Fixed no-useless-assignment by removing redundant initializer and using type annotation only
  • Fixed no-undef in service worker by declaring browser globals
  • Replaced broken next lint command in apps/site with no-op echo (Next.js 16 removed this CLI subcommand)

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/workflow/src/stdlib.ts Removed redundant initializer from message variable (type annotation sufficient)
packages/permissions/src/sharing-rules.ts Wrapped group and territory case declarations with {} for proper scoping
packages/notification/src/channels/email.ts Changed body variables from let to const (never reassigned)
packages/jobs/src/storage.ts Wrapped priority case declaration with {} for proper scoping
packages/automation/src/plugin.ts Added explanatory comments to empty catch blocks (fire-and-forget pattern)
packages/agent/src/orchestrator.ts Changed currentMessages from let to const (array reference never changes, only mutated)
apps/web/public/sw.js Added global declarations for service worker browser APIs
apps/site/package.json Replaced broken next lint with no-op echo (site is excluded from root ESLint config)

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.

3 participants