Repository navigation
chore(js): use typescript-eslint and @eslint/js in package template - #747
Draft
curfew-marathon wants to merge 1 commit into
Draft
curfew-marathon wants to merge 1 commit into
curfew-marathon wants to merge 1 commit into
Conversation
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>
Contributor
Pre-merge checks:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config/clients/js/template/package.mustache, replace the@typescript-eslint/eslint-pluginand@typescript-eslint/parserdevDependencies with the unifiedtypescript-eslintpackage, and add@eslint/js. Only the eslint lines changed.lintscripts already matched.Merge order and sync behavior
sync-sdks.yamlruns on any push toconfig/**and regeneratespackage.jsonfrom the whole template, which still differs from js-sdk beyond the ESLint lines:@types/jestand ts-jest withjest --config, instead of the node test runner andpretesttypescript ^6.0.3, instead of the@typescript/typescript6alias plus@typescript/nativeoverridesblock (brace-expansion,js-yaml, andminimatch ^11.0.1from js-sdk#508, which fixes thenpm auditjob)chore(sync)PR in js-sdk. I deliberately left the drift out of this PR.Test plan
make test-client-jsnot run (Docker was unavailable)🤖 Generated with Claude Code