Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test: rewrite some files in.ts#2968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
9romise wants to merge5 commits intovuejs:master
base:master
Choose a base branch
Loading
from9romise:rewrite-test-ts

Conversation

@9romise
Copy link
Contributor

@9romise9romise commentedNov 22, 2025
edited
Loading

In earlier Node.js versions, importingts files directly wasn't supported, so the failing test files from#2916 have been changed to use the.ts extension in this PR.

@changeset-bot
Copy link

changeset-botbot commentedNov 22, 2025
edited
Loading

⚠️ No Changeset found

Latest commit:35bfd7c

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

9romise added a commit to 9romise/eslint-plugin-vue that referenced this pull requestNov 22, 2025
@9romise9romise marked this pull request as ready for reviewNovember 22, 2025 16:41
Copy link
Member

@FloEdelmannFloEdelmann left a comment

Choose a reason for hiding this comment

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

Cool!

Copy link
Member

@FloEdelmannFloEdelmann left a comment

Choose a reason for hiding this comment

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

Looks good to me now. Thank you! 🙂

9romise reacted with heart emoji
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR converts several test files from JavaScript (.js) to TypeScript (.ts) to enable direct import of TypeScript files in modern Node.js versions. The changes include:

  • Migration from CommonJSrequire() to ES6import statements
  • Addition of type annotations for better type safety
  • Configuration updates to support TypeScript test files
  • Addition of non-null assertions with corresponding ESLint rule disabled

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
tsconfig.jsonAdded vitest globals types and included test TypeScript files in compilation
tests/lib/rules/comment-directive.tsConverted from.js to.ts with ES6 imports and type annotations
tests/lib/rules/block-order.tsConverted from.js to.ts with ES6 imports, type annotations, and removed unnecessaryoutput: null from valid test cases
tests/lib/configs/flat.tsConverted from.js to.ts with ES6 imports, type annotations, and added non-null assertions
tests/lib/configs/eslintrc.tsConverted from.js to.ts with ES6 imports
eslint.config.mjsDisabled@typescript-eslint/no-non-null-assertion rule to allow non-null assertions in TypeScript code
Comments suppressed due to low confidence (1)

tests/lib/rules/block-order.ts:4

  • The import path'../../../node_modules/@types/eslint' is fragile and non-standard. Import from'eslint' directly instead, as TypeScript will resolve the correct type definitions automatically.

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@FloEdelmannFloEdelmannFloEdelmann approved these changes

@ota-meshiota-meshiAwaiting requested review from ota-meshi

@waynzhwaynzhAwaiting requested review from waynzh

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@9romise@FloEdelmann

[8]ページ先頭

©2009-2025 Movatter.jp