Skip to content

Fix lint errors caused by stale ESLint cache#320

Closed
toiroakr with Copilot wants to merge 1 commit into
chore/use-oxlint-and-oxfmtfrom
copilot/sub-pr-289
Closed

Fix lint errors caused by stale ESLint cache#320
toiroakr with Copilot wants to merge 1 commit into
chore/use-oxlint-and-oxfmtfrom
copilot/sub-pr-289

Conversation

Copilot AI commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

Templates were failing lint with hundreds of TypeScript errors (unsafe-call, unsafe-member-access, etc.) because ESLint cached type information before the SDK package was built.

Changes

  • Removed all .eslintcache files to clear stale type information
  • Built SDK package to ensure type definitions are available before linting

The issue occurred because:

  1. Templates use typescript-eslint with type-checking that requires SDK type definitions
  2. ESLint cache was created before SDK build, causing TypeScript to fail type resolution
  3. All SDK exports appeared as error types to the type checker

After building the SDK and clearing cache, all lint checks pass. Cache files are already gitignored, so no code changes required.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@changeset-bot

changeset-bot Bot commented Dec 25, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 58626e0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI mentioned this pull request Dec 25, 2025
Copilot AI changed the title [WIP] Add oxlint and oxfmt for code formatting Fix lint errors caused by stale ESLint cache Dec 25, 2025
Copilot AI requested a review from toiroakr December 25, 2025 09:56
@toiroakr toiroakr closed this Dec 25, 2025
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.

2 participants