Skip to content

refactor: migrate utils/index to TypeScript - #3208

Merged
FloEdelmann merged 9 commits into
vuejs:masterfrom
ValentinYoushkevich:refactor/ts-utils-index
Oct 30, 2026
Merged

FloEdelmann merged 9 commits into
vuejs:masterfrom
ValentinYoushkevich:refactor/ts-utils-index

Conversation

@ValentinYoushkevich

@ValentinYoushkevich ValentinYoushkevich commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

A draft that I'll fill in step by step; each commit can be reviewed on its own. The first commit moves utils/index with annotations taken from the JSDoc types, imports it with the .ts extension (Node can't map the old .js paths natively) and renames withinTypeNode to isWithinTypeNode. Linter and builtinRules are imported at the top, since require is missing when Node loads the file as ESM. Later commits drop the JSDoc tags section by section, migrate the built-in element lists and remove the Vitest alias for eslint-utils. scope.js and ts-utils stay JavaScript, since JS files still require them.

Part of #2777

@changeset-bot

This comment has been minimized.

@FloEdelmann

This comment has been minimized.

@ValentinYoushkevich

This comment has been minimized.

@FloEdelmann FloEdelmann added the meta Code style improvements, build process improvements, refactorings label Oct 23, 2026
@ValentinYoushkevich
ValentinYoushkevich marked this pull request as ready for review October 25, 2026 17:47
@FloEdelmann

This comment has been minimized.

@ValentinYoushkevich

This comment has been minimized.

@FloEdelmann
FloEdelmann force-pushed the refactor/ts-utils-index branch from 403cf56 to c649cee Compare October 29, 2026 14:42

@FloEdelmann FloEdelmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks once again for your continued effort in the TypeScript migration! This was a big chunk!

Comment thread lib/utils/index.ts Resolved
@FloEdelmann
FloEdelmann merged commit 9bde0bf into vuejs:master Oct 30, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Code style improvements, build process improvements, refactorings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants