Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

CI lint job was failing due to apps/site using next lint without required Next.js ESLint config, and lexical declarations in unscoped switch case blocks.

Changes

apps/site/package.json

  • Changed lint script from next lint to eslint . to use root flat config

packages/core/src/adapters/objectstack-adapter.ts

  • Added block scopes to delete and update cases to satisfy ESLint no-case-declarations rule
case 'delete': {
  const ids = data.map(item => (item as any).id).filter(Boolean);
  await this.client.data.deleteMany(resource, ids);
  return [];
}

All packages now use consistent eslint . command with root-level flat config.

Original prompt

引用: https://github.com/objectstack-ai/objectui/actions/runs/21192354319/job/60964466074#step:8:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@vercel
Copy link

vercel bot commented Jan 21, 2026

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

Project Deployment Review Updated (UTC)
objectui-docs Error Error Jan 21, 2026 1:19am
objectui-site Ready Ready Preview, Comment Jan 21, 2026 1:19am

Request Review

Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub Actions workflow for CI Fix lint failures: standardize ESLint usage and scope case blocks Jan 21, 2026
Copilot AI requested a review from huangyiirene January 21, 2026 01:22
@huangyiirene huangyiirene marked this pull request as ready for review January 21, 2026 01:33
@huangyiirene huangyiirene merged commit d372697 into copilot/refactor-platform-core-code Jan 21, 2026
4 of 5 checks passed
@github-actions
Copy link

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants