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

feat(utils): update types to reflectRuleContext andSourceCode changes and deprecations#7812

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
JoshuaKGoldberg merged 8 commits intotypescript-eslint:mainfromG-Rath:deprecate-getAncestors
Nov 13, 2023

Conversation

G-Rath
Copy link
Contributor

@G-RathG-Rath commentedOct 20, 2023
edited by JoshuaKGoldberg
Loading

PR Checklist

Overview

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

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@G-Rath!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedOct 20, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitd3bd6c3
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/655151c2d39d0f0009fbb413
😎 Deploy Previewhttps://deploy-preview-7812--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 89 (🔴 down 10 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to yourNetlify site configuration.

@nx-cloud
Copy link

nx-cloudbot commentedOct 20, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit527c3dd. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 19 targets

Sent with 💌 fromNxCloud.

@G-Rath
Copy link
ContributorAuthor

Are folks ok if I ignore the deprecation linting errors? I can help getting them addressed but would prefer to do so in dedicated PR since they'll require actual runtime changes and there's a few different ways they can be approached

@JoshuaKGoldberg
Copy link
Member

Well, we need typescript-eslint to work on both v8 and v9 for the time being. Dropping v8 would be a breaking change. I'd presumeeslint-disable comments would be the way to go.

@G-Rath
Copy link
ContributorAuthor

My point is you'll need to make changes to support v9 since some of these are being removed in that major - it's pretty straight forward (I've already done this ineslint-plugin-jest) but I'd still prefer to do it in a dedicated PR because there are two different changes here (adding types, moving off deprecated functions and properties) & how I've done it foreslint-plugin-jest might not be how you want to do it here

I'll add disable directives for now

@JoshuaKGoldberg
Copy link
Member

JoshuaKGoldberg commentedOct 22, 2023
edited
Loading

Agreed.https://github.com/jest-community/eslint-plugin-jest/blob/3c12c9842df7950dd214855fa69b1785c4d1574d/src/rules/utils/misc.ts is roughly the strategy I'm betting we'll want to take. 🙂

exportconstgetDeclaredVariables=(context:TSESLint.RuleContext<string,unknown[]>,node:TSESTree.Node,)=>{constsourceCode=getSourceCode(context);if('getDeclaredVariables'insourceCode){returnsourceCode.getDeclaredVariables(node);}returncontext.getDeclaredVariables(node);};

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesOct 22, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

💯 thanks!

@JoshuaKGoldbergJoshuaKGoldberg added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelOct 22, 2023
@JoshuaKGoldberg
Copy link
Member

Adding1 approval label for now because this I'd love someone else from @typescript-eslint/triage-team to take a look at this area code. Both to raise visibility, and because I'm not 100% confident I'm not missing something. A gut hunch.

G-Rath reacted with thumbs up emoji

@JoshuaKGoldbergJoshuaKGoldberg merged commitb73d8b2 intotypescript-eslint:mainNov 13, 2023
@JoshuaKGoldberg
Copy link
Member

Thanks again@G-Rath!

@JoshuaKGoldberg
Copy link
Member

Amusingly, there are now a bunch of lint failures onmain:#7913. But this PR had a passing ✅. So nobody should feel bad 😄

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsNov 21, 2023
@G-RathG-Rath deleted the deprecate-getAncestors branchJanuary 4, 2024 19:05
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bradzacherbradzacherbradzacher approved these changes

@JuanSebastianDiazVeraJuanSebastianDiazVeraJuanSebastianDiazVera approved these changes

@JoshuaKGoldbergJoshuaKGoldbergAwaiting requested review from JoshuaKGoldberg

Assignees
No one assigned
Labels
1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Enhancement: Update types for ESLint v9's changes and deprecations
4 participants
@G-Rath@JoshuaKGoldberg@bradzacher@JuanSebastianDiazVera

[8]ページ先頭

©2009-2025 Movatter.jp