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

fix: replace use of deprecated methods#1453

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
G-Rath merged 6 commits intomainfromupdate-context-usage
Jan 12, 2024
Merged

Conversation

G-Rath
Copy link
Collaborator

Perhttps://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/

Marking as a draft for now since there isn't an immediate need to land this and I want to dig a bit deeper into ESLint v9 etc in case there are other deprecations that might be upcoming.

@G-RathG-Rath requested a review fromSimenBOctober 20, 2023 23:56
@G-RathG-Rath marked this pull request as ready for reviewDecember 30, 2023 18:43
@@ -19,6 +19,32 @@ declare module '@typescript-eslint/utils/dist/ts-eslint/Rule' {
}
}

declare module '@typescript-eslint/utils/dist/ts-eslint/SourceCode' {
Copy link
Member

Choose a reason for hiding this comment

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

can we avoid this by upgrading to v6?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yeah I implemented the types intypescript-eslint/typescript-eslint#7812

Copy link
Member

Choose a reason for hiding this comment

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

sweet! we should probably do that in a major

@@ -229,3 +229,63 @@ export const getFirstMatcherArg = (

return followTypeAssertionChain(firstArg);
};

/* istanbul ignore next */
Copy link
Member

Choose a reason for hiding this comment

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

why do we need to ignore coverage?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

because only one branch in each function should ever get used depending on what ESLint version you're using, and coverage is only collected against a single ESLint version at a time (technically we could merge reports for CI but that'd still be a pain locally)

Copy link
Member

@SimenBSimenB left a comment
edited
Loading

Choose a reason for hiding this comment

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

woo!

should we set up CI to test against v9?

@G-Rath
Copy link
CollaboratorAuthor

should we set up CI to test against v9?

Yup, though I'll do that in a follow-up PR

@G-RathG-Rath merged commit9204a51 intomainJan 12, 2024
@G-RathG-Rath deleted the update-context-usage branchJanuary 12, 2024 17:32
github-actionsbot pushed a commit that referenced this pull requestJan 12, 2024
## [27.6.3](v27.6.2...v27.6.3) (2024-01-12)### Bug Fixes* replace use of deprecated methods ([#1453](#1453)) ([9204a51](9204a51))
@github-actionsGitHub Actions
Copy link

🎉 This PR is included in version 27.6.3 🎉

The release is available on:

Yoursemantic-release bot 📦🚀

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

[8]ページ先頭

©2009-2025 Movatter.jp