Skip to content

chore(js): use typescript-eslint and @eslint/js in package template - #747

Draft
curfew-marathon wants to merge 1 commit into
mainfrom
chore/eslint-10-package-template
Draft

curfew-marathon wants to merge 1 commit into
mainfrom
chore/eslint-10-package-template

Conversation

@curfew-marathon

@curfew-marathon curfew-marathon commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • In config/clients/js/template/package.mustache, replace the @typescript-eslint/eslint-plugin and @typescript-eslint/parser devDependencies with the unified typescript-eslint package, and add @eslint/js. Only the eslint lines changed.
  • This matches the ESLint 10 flat config modernization in chore(eslint): modernize ESLint 10 flat config js-sdk#506. The lint scripts already matched.

Merge order and sync behavior

  • Merge the js-sdk PR (feat(go-sdk): improve retry mechanism #506) first, so js-sdk's config and dependencies change together.
  • This PR does not make the sync a no-op. sync-sdks.yaml runs on any push to config/** and regenerates package.json from the whole template, which still differs from js-sdk beyond the ESLint lines:
    • axios 1.18.1 (js-sdk has 1.20.0)
    • jest, @types/jest and ts-jest with jest --config, instead of the node test runner and pretest
    • plain typescript ^6.0.3, instead of the @typescript/typescript6 alias plus @typescript/native
    • no overrides block (brace-expansion, js-yaml, and minimatch ^11.0.1 from js-sdk#508, which fixes the npm audit job)
  • Before merging, either fix that template drift in a separate PR, or plan to hand-edit the resulting chore(sync) PR in js-sdk. I deliberately left the drift out of this PR.

Test plan

  • Diff reviewed: only the eslint-related devDependency lines changed
  • make test-client-js not run (Docker was unavailable)
  • Sync output not regenerated or compared against js-sdk

🤖 Generated with Claude Code

Match js-sdk's modernized ESLint 10 flat config: replace the separate
@typescript-eslint/eslint-plugin and /parser devDependencies with the
unified typescript-eslint package, and add @eslint/js, which the config
now imports for js.configs.recommended.

Merge order: land the js-sdk PR first, so js-sdk's config and dependencies
change together. This template change alone does NOT make the sync a
no-op: the sync workflow runs on any push to config/** and regenerates
package.json from the whole template, which still differs from js-sdk
beyond the ESLint lines (axios version, jest/ts-jest instead of the node
test runner, plain typescript instead of the @typescript/typescript6
alias, no overrides block). Fix that drift in a separate PR first, or
plan to hand-edit the resulting sync PR.

Co-Authored-By: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
Pre-merge checks: Passed 1 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Passed Passed checks: 1 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant