Skip to content

build: raise TypeScript linting toolchain floor (gh54 part IV)#10966

Draft
Planeshifter wants to merge 1 commit intophilipp/gh54-jsdoc-migrationfrom
philipp/gh54-ts-toolchain-bump
Draft

build: raise TypeScript linting toolchain floor (gh54 part IV)#10966
Planeshifter wants to merge 1 commit intophilipp/gh54-jsdoc-migrationfrom
philipp/gh54-ts-toolchain-bump

Conversation

@Planeshifter
Copy link
Member

Progresses stdlib-js/metr-issue-tracker#54.

Description

What is the purpose of this pull request?

This pull request:

  • Upgrades TypeScript from 4.3.5 to 4.9.5 (minimum for typescript-eslint v8 is >=4.8.4) (PR 6 of the migration plan).
  • Upgrades @typescript-eslint/parser and @typescript-eslint/eslint-plugin from v6 to v8.
  • Installs @stylistic/eslint-plugin-ts for formatting rules removed from typescript-eslint in v8.
  • Replaces removed rules in etc/eslint/rules/typescript.js:
    • @typescript-eslint/indent@stylistic/ts/indent
    • @typescript-eslint/member-delimiter-style@stylistic/ts/member-delimiter-style
    • @typescript-eslint/quotes@stylistic/ts/quotes
    • @typescript-eslint/semi@stylistic/ts/semi
    • @typescript-eslint/space-before-function-paren@stylistic/ts/space-before-function-paren
    • @typescript-eslint/type-annotation-spacing@stylistic/ts/type-annotation-spacing
    • @typescript-eslint/ban-types@typescript-eslint/no-restricted-types (was already off)

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

The TypeScript upgrade (4.3.5 → 4.9.5) is for the linting toolchain only, not stdlib's published runtime support policy. 4.9.5 is the minimum practical version that satisfies typescript-eslint v8's peer dependency (>=4.8.4).

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Stacked on #10965.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was written primarily by Claude Code.


@stdlib-js/reviewers

@socket-security
Copy link

socket-security bot commented Mar 15, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​typescript-eslint/​parser@​6.21.0 ⏵ 8.57.0100 +110071 +198100
Updated@​typescript-eslint/​eslint-plugin@​6.21.0 ⏵ 8.57.099 +110080 +198100
Updatedtypescript@​4.3.5 ⏵ 4.9.5100 +110090 -1010090 +10

View full report

@Planeshifter Planeshifter force-pushed the philipp/gh54-ts-toolchain-bump branch from 44ea759 to b5e37c5 Compare March 15, 2026 14:24
@socket-security
Copy link

socket-security bot commented Mar 15, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@Planeshifter Planeshifter force-pushed the philipp/gh54-ts-toolchain-bump branch from b5e37c5 to 6b4b53e Compare March 15, 2026 14:28
@Planeshifter Planeshifter force-pushed the philipp/gh54-jsdoc-migration branch from e0e5a99 to 0201b91 Compare March 15, 2026 15:33
@Planeshifter Planeshifter force-pushed the philipp/gh54-ts-toolchain-bump branch from 6b4b53e to b7de8e9 Compare March 15, 2026 15:34
@Planeshifter Planeshifter force-pushed the philipp/gh54-jsdoc-migration branch from 0201b91 to b0f5533 Compare March 15, 2026 16:25
@Planeshifter Planeshifter force-pushed the philipp/gh54-ts-toolchain-bump branch from b7de8e9 to 255a35c Compare March 15, 2026 16:26
@Planeshifter Planeshifter changed the title build: raise TypeScript linting toolchain floor build: raise TypeScript linting toolchain floor (gh54 part IV) Mar 15, 2026
@Planeshifter Planeshifter force-pushed the philipp/gh54-jsdoc-migration branch from b0f5533 to 28cbc14 Compare March 15, 2026 17:46
@Planeshifter Planeshifter force-pushed the philipp/gh54-ts-toolchain-bump branch from 255a35c to 28cbc14 Compare March 15, 2026 17:46
Upgrade the TypeScript linting stack to support ESLint v9:

- Upgrade TypeScript from 4.3.5 to 4.9.5
- Upgrade @typescript-eslint/parser and eslint-plugin from v6 to v8
- Replace removed rules with @stylistic/ts/* equivalents
- Replace @typescript-eslint/ban-types with no-restricted-types

Ref: stdlib-js/metr-issue-tracker#54
@Planeshifter Planeshifter reopened this Mar 15, 2026
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