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

chore: remove ESLint compatibility code#2965

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

Merged
FloEdelmann merged 15 commits intovuejs:masterfrom9romise:cleanup
Nov 26, 2025

Conversation

@9romise
Copy link
Contributor

@9romise9romise commentedNov 22, 2025
edited
Loading

Since our minimum supported version is currentlyESLint 8.57.0.

This PR aligns with the migration guide athttps://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/, replacing certain APIs that will be removed in ESLint v10 with their modern equivalents.

Related:

@changeset-bot
Copy link

changeset-botbot commentedNov 22, 2025
edited
Loading

⚠️ No Changeset found

Latest commit:9adaecf

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

@FloEdelmannFloEdelmannforce-pushed thecleanup branch 2 times, most recently from3d4b39d tob41f03aCompareNovember 24, 2025 18:07
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.

I'm sorry@9romise, I pushed some changes that failed the tests. After reverting and even force-pushing to remove the commit, now the tests even fail for your last commit, where they previously passed. I guess something's in the cache somewhere that shouldn't be there.

Regarding your changes, those look good to me. Thank you for cleaning up! 🙂

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 removes ESLint compatibility code for older versions (< 8.57.0) and migrates to modern ESLint v9/v10 APIs. Since the minimum supported ESLint version is now 8.57.0, the code no longer needs to maintain backward-compatible wrappers for deprecated APIs.

  • Updated TypeScript definitions to reflect required vs optional context properties
  • Replaced deprecated method calls (getSourceCode(),getFilename(),getCwd()) with direct property access (sourceCode,filename,cwd)
  • Removed themarkVariableAsUsed utility wrapper function sincecontext.sourceCode.markVariableAsUsed is now always available

Reviewed changes

Copilot reviewed 101 out of 102 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
typings/eslint/index.d.tsUpdated type definitions to mark deprecated methods as optional and new properties as required; clarified ESLint v10 deprecation comments
lib/utils/index.jsRemovedmarkVariableAsUsed utility wrapper and simplifiedgetDeclaredVariables implementation; updated allgetSourceCode() calls tosourceCode property
lib/rules/*.jsReplaced deprecated method calls with direct property access across all rule files
tests/lib/utils/selector.jsUpdated test utility to usecontext.sourceCode directly
lib/utils/*.jsUpdated utility functions to use modern context properties

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

Copy link
Member

@ota-meshiota-meshi left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!
The CI error should be fixed in#2969.

FloEdelmann reacted with thumbs up emoji9romise reacted with heart emoji
@FloEdelmannFloEdelmann merged commit76c51ac intovuejs:masterNov 26, 2025
15 checks passed
@9romise9romise deleted the cleanup branchNovember 26, 2025 09:05
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-meshiota-meshi approved these changes

@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.

3 participants

@9romise@FloEdelmann@ota-meshi

[8]ページ先頭

©2009-2025 Movatter.jp