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: migrateeslint-plugin-import toeslint-plugin-import-x#11217

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

Closed

Conversation

JounQin
Copy link
Contributor

@JounQinJounQin commentedMay 14, 2025
edited by JoshuaKGoldberg
Loading

PR Checklist

Overview

Old measurements (see later for updated ones)Before:
 typescript-eslint on  main ❯ TIMING=1 y eslint .Rule                                               | Time (ms) | Relative:--------------------------------------------------|----------:|--------:@typescript-eslint/no-unsafe-assignment            |  5458.780 |    22.9%@typescript-eslint/internal/plugin-test-formatting |  3047.222 |    12.8%@typescript-eslint/no-floating-promises            |  2288.399 |     9.6%@typescript-eslint/no-misused-promises             |  2215.349 |     9.3%@typescript-eslint/no-unsafe-return                |  1609.052 |     6.8%@typescript-eslint/no-deprecated                   |  1049.075 |     4.4%@typescript-eslint/no-unsafe-argument              |   954.879 |     4.0%@typescript-eslint/no-unsafe-member-access         |   528.152 |     2.2%import/no-duplicates                               |   501.363 |     2.1%perfectionist/sort-objects                         |   373.923 |     1.6%via .NET via  v24.0.1 took 1m13s
 typescript-eslint on  chore/import-x [+] ❯ TIMING=1 y eslint .Rule                                               | Time (ms) | Relative:--------------------------------------------------|----------:|--------:@typescript-eslint/no-unsafe-assignment            |  3212.736 |    15.9%@typescript-eslint/internal/plugin-test-formatting |  3052.515 |    15.1%@typescript-eslint/no-floating-promises            |  2319.146 |    11.5%@typescript-eslint/no-misused-promises             |  2253.580 |    11.2%@typescript-eslint/no-unsafe-return                |  1785.357 |     8.9%@typescript-eslint/no-unsafe-argument              |   932.104 |     4.6%@typescript-eslint/no-deprecated                   |   906.925 |     4.5%@typescript-eslint/no-unsafe-member-access         |   528.508 |     2.6%@typescript-eslint/no-unnecessary-condition        |   321.524 |     1.6%perfectionist/sort-objects                         |   298.678 |     1.5%via .NET via  v24.0.1 took 1m8s

For a single ESLint plugin migration, I believe from 1m13s to 1m8s is already good enough, and it founds a false positive that@docusaurus/plugin-content-blog should be listed independencies forwebsite, becauseeslint-plugin-import-x is a TypeScript rewrite started atun-ts/eslint-plugin-import-x#42 and we fixed several hidden bugs thanks to TypeScript!

(I don't know whynx complains aboutreact-helmet-async version incompatible with@docusaurus/core's, see alsohttps://app.unpkg.com/@docusaurus/core@3.7.0/files/package.json#L63, so I'm locking it same way to makenx happy.)

cc@JoshuaKGoldberg

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@JounQin!

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 commentedMay 14, 2025
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit9370841
🔍 Latest deploy loghttps://app.netlify.com/projects/typescript-eslint/deploys/685be5a50e77520008048843
😎 Deploy Previewhttps://deploy-preview-11217--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: 92 (🔴 down 3 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (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 project configuration.

@nx-cloudNx Cloud
Copy link

nx-cloudbot commentedMay 14, 2025
edited
Loading

View yourCI Pipeline Execution ↗ for commit9370841.

CommandStatusDurationResult
nx test eslint-plugin --coverage=false✅ Succeeded5m 5sView ↗
nx run-many -t typecheck✅ Succeeded1m 58sView ↗
nx run types:build✅ Succeeded<1sView ↗
nx run-many -t lint✅ Succeeded10sView ↗
nx run integration-tests:test✅ Succeeded<1sView ↗
nx test eslint-plugin-internal --coverage=false✅ Succeeded<1sView ↗
nx test typescript-estree --coverage=false✅ Succeeded<1sView ↗
nx run generate-configs✅ Succeeded5sView ↗
Additional runs (27)✅ Succeeded...View ↗

☁️Nx Cloud last updated this comment at2025-06-25 12:21:11 UTC

@JoshuaKGoldberg
Copy link
Member

@JounQin those statistics look surprising to me.All lint rules are slower in the second one. Why would that be the case?

I'm out traveling and can't do much testing at the moment, otherwise I'd post somehyperfine statistics.

@JounQin
Copy link
ContributorAuthor

JounQin commentedMay 30, 2025
edited
Loading

I don't know,eslint-plugin-import-x is powered by@typescript-eslint/utils under the hood,eslint-plugin-import is wrote without top level tools.


Update:eslint-plugin-import-x now doesn't have@typescript-eslint/utils as dependency anymore.

@codecovCodecov
Copy link

codecovbot commentedMay 30, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.84%. Comparing base(3e54520) to head(9370841).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@##             main   #11217   +/-   ##=======================================  Coverage   90.84%   90.84%           =======================================  Files         501      501             Lines       50919    50919             Branches     8387     8387           =======================================  Hits        46256    46256             Misses       4648     4648             Partials       15       15
FlagCoverage Δ
unittest90.84% <ø> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JounQinJounQinforce-pushed thechore/import-x branch 4 times, most recently fromfc1ebc7 to36cf5b1CompareJune 2, 2025 14:05
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.

The perf boost is nice, but there are a lot of lockfile & package dep changes that are not needed for this. Could you please revert any that aren't actually necessary / newly caught issues (e.g. the Docusaurus 3.7 bump)?

I think we need a relatively clean PR showing that the lockfile doesn't get significantly larger from this change.#11212 (comment) raises a good point that we already have a lot of deps from multiple plugins in this package. The size of node_modules is a performance factor for us too (#11204). I think we'd want to know how "bad" the duplication is before making the switch-or-not call.

@JoshuaKGoldbergJoshuaKGoldberg added the awaiting responseIssues waiting for a reply from the OP or another party labelJun 9, 2025
@github-actionsgithub-actionsbot removed the awaiting responseIssues waiting for a reply from the OP or another party labelJun 13, 2025
@JoshuaKGoldberg
Copy link
Member

Thanks for getting this to a reviewable state. Seeing the lockfile and having a clean slate to run performance measurements locally on was helpful. Conclusions commented here:#11212 (comment)

tl;dr: this won't be a net positive unless & until the other*-x plugins are ready to be swapped over too.

I'll go ahead and close this out to keep the queue small. Looking forward to being able to reevaluate later this year though! 💙

JounQin reacted with thumbs up emoji

@JounQinJounQin deleted the chore/import-x branchJune 27, 2025 01:15
@@ -53,6 +53,9 @@
"@typescript-eslint/types": "^8.35.0",
"debug": "^4.3.4"
},
"devDependencies": {
"vitest": "^3.1.3"
Copy link
ContributorAuthor

@JounQinJounQinJun 27, 2025
edited
Loading

Choose a reason for hiding this comment

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

@JoshuaKGoldberg By the way, this is found byimport-x.

And also#11265

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsJul 5, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergAwaiting requested review from JoshuaKGoldberg

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Repo: migrateeslint-plugin-import toeslint-plugin-import-x
2 participants
@JounQin@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp