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: add knip#8192

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
auvred merged 50 commits intotypescript-eslint:mainfromauvred:chore/add-knip
May 13, 2024
Merged

chore: add knip#8192

auvred merged 50 commits intotypescript-eslint:mainfromauvred:chore/add-knip
May 13, 2024

Conversation

auvred
Copy link
Member

@auvredauvred commentedJan 5, 2024
edited
Loading

PR Checklist

Overview

TODO:

JoshuaKGoldberg and phiresky reacted with rocket emoji
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@auvred!

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.

@netlifyNetlify
Copy link

netlifybot commentedJan 5, 2024
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit2188ef8
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/66422ee784e82a0008abd70c
😎 Deploy Previewhttps://deploy-preview-8192--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: 98 (🟢 up 2 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.

auvredand others added22 commitsJanuary 6, 2024 08:28
@@ -1,5 +1,9 @@
'use strict';

// @ts-check

Choose a reason for hiding this comment

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

[Praise] Nice, +1 to getting// @ts-check in here.

auvred reacted with heart emoji
This reverts commit36fa481.
JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesApr 23, 2024
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.

✂️ this is fantastic, nice job@auvred! Love the explanations throughout and all the removed stuff.

Nothing I commented is a blocker IMO. They can all be followup issues IMO.

auvred reacted with heart emoji
knip.ts Outdated
Comment on lines 63 to 65
'packages/repo-tools': {
ignoreDependencies: ['tsconfig.json'],
},

Choose a reason for hiding this comment

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

Yeah this feels like a feature request for Knip: shouldn't it understand thatnpx tsc goes to TypeScript?

...separately,-p defaults totsconfig.json.yarn knip andyarn typecheck pass happily for me when I remove the-p tsconfig.json altogether. Maybe a good reason to remove them?

auvred reacted with thumbs up emoji
'src/mock/lru-cache.js',
'src/mock/path.js',
'src/mock/typescript.js',
'src/mock/util.js',

Choose a reason for hiding this comment

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

You know, as a followup I bet we could switch these over to plain.ts files, and remove the need for therequireResolved that's tripping up Knip... Not blocking at all IMO.

@@ -1,4 +1,5 @@
export * from './applyDefault';
export * from './context';

Choose a reason for hiding this comment

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

Probably yeah. The fact that nobody has reported anything makes me less motivated to - but, yeah, we should.

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
@@ -13,16 +13,21 @@
"lint": "npx nx lint",
"postinstall-script": "npx tsx ./src/postinstall.mts",
"test": "npx jest --coverage",
"typecheck": "npx tsc -p tsconfig.json --noEmit"
"typecheck": "npx tsc --noEmit"

This comment was marked as resolved.

This comment was marked as resolved.

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesApr 26, 2024
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.

🚀

@webpro
Copy link

Hey folks, this is great! I didn't check out the details of this PR, but feel free to drag me into this, love to help out a bit here. If there's feature requests or other annoying stuff in/from Knip I'd love to hear about it.

JoshuaKGoldberg, auvred, and jerone reacted with heart emoji

@auvred
Copy link
MemberAuthor

auvred commentedApr 30, 2024
edited
Loading

Integration tests failures are unrelated. See#9029 (comment):

8127873 /#8640

This commit changed thecontext.report from{ node, ... } to{ loc, ... } Hence thenodeType is no longer visible in the output as the rule is not reporting against the node.

I think we can finally merge this PR!

UPD: this issue has been resolved onmain

@auvred
Copy link
MemberAuthor

Unfortunately, mergingmain two weeks ago automatically dismissed an existing approval, so I can't merge this PR (the PR authors can't approve their PR). Could someone please re-review and stamp this PR so we can merge it?

Every Monday, after the automatic release, there are a few merge conflicts due to bumped@typescript-eslint/* versions, and it's a bit tedious to resolve them every Monday 😄

@rubiesonthesky
Copy link
Contributor

@auvred Could you try runningyarn dedupe in this branch and see if all the tests still pass? I think you may have fixed the problem that all the renovate branches have. But I suspect, that it will only manifest itself afteryarn dedupe.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Forwarding#8192 (comment) here:

@rubiesonthesky, I've already ranyarn dedupe in one of the previous commits on this PR, but theast-spec tests didn't pass with deduped lockfile:

https://github.com/typescript-eslint/typescript-eslint/actions/runs/8804176361/job/24164146899

So, I reverted these changes in5c56b50


Might be useful info: Joshua ranyarn dedupe in the#9002 (merged inv8 branch) -#9002 (comment)

JoshuaKGoldberg reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

@auvred Sorry and thank you :) That explains everything.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

NP! Thank you for Renovate issue investigation!

Choose a reason for hiding this comment

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

Yeah I think once someone takes the time to fix the test errors in#8589, we could probably keep it deduped forever. Which would be great.

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.

💯 looks fantastic, thanks for pressing on this! Very excited to have the cross-file unused code detection.

Marking as1 approval to give you a chance to merge whenever you want. 😁

auvred reacted with heart emoji
@JoshuaKGoldbergJoshuaKGoldberg added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelMay 13, 2024
@auvredauvred merged commitf53fece intotypescript-eslint:mainMay 13, 2024
61 checks passed
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMay 21, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@rubiesontheskyrubiesontheskyrubiesonthesky left review comments

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

@armano2armano2Awaiting requested review from armano2

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.

Repo: Add Knip
5 participants
@auvred@JoshuaKGoldberg@webpro@rubiesonthesky@armano2

[8]ページ先頭

©2009-2025 Movatter.jp