Skip to content

docs: emphasize performance tradeoffs of typed linting #10730

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

JoshuaKGoldberg
Copy link
Member

PR Checklist

Overview

Adds almost no new content, instead emphasizing or reorganizing existing content:

  • Adds the suggested "which comes with performance tradeoffs" note to the auto-added cards on top of rules pages
  • Moves FAQs from /getting-started/typed-linting to the actual typed linting FAQs, promoting the Performance heading to an h2

💖

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @JoshuaKGoldberg!

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 on https://opencollective.com/typescript-eslint.

Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit a2cdccc
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/67a0dcf78af624000833b717
😎 Deploy Preview https://deploy-preview-10730--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: 93 (🔴 down 5 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 your Netlify site configuration.

Copy link

nx-cloud bot commented Jan 28, 2025

View your CI Pipeline Execution ↗ for commit a2cdccc.

Command Status Duration Result
nx test utils ✅ Succeeded <1s View ↗
nx test visitor-keys ✅ Succeeded <1s View ↗
nx run types:build ✅ Succeeded <1s View ↗
nx test type-utils ✅ Succeeded <1s View ↗
nx run-many --target=build --exclude website --... ✅ Succeeded 4s View ↗
nx test utils --coverage=false ✅ Succeeded <1s View ↗
nx test typescript-eslint ✅ Succeeded <1s View ↗
nx run-many --target=clean ✅ Succeeded 13s View ↗
Additional runs (24) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-02-03 15:28:53 UTC

@JoshuaKGoldberg JoshuaKGoldberg requested review from nzakas and a team January 29, 2025 20:39
JoshuaKGoldberg and others added 3 commits January 31, 2025 08:35
Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com>
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.27%. Comparing base (94e8098) to head (a2cdccc).
Report is 29 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10730   +/-   ##
=======================================
  Coverage   87.26%   87.27%           
=======================================
  Files         450      450           
  Lines       15712    15719    +7     
  Branches     4600     4601    +1     
=======================================
+ Hits        13711    13718    +7     
  Misses       1645     1645           
  Partials      356      356           
Flag Coverage Δ
unittest 87.27% <ø> (+<0.01%) ⬆️

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

see 5 files with indirect coverage changes

This requires TypeScript to analyze your entire project instead of just the file being linted.

As a result, these rules are slower than traditional lint rules but are much more powerful.

To tap into TypeScript's additional powers, there are two small changes you need to make to your config file:
Copy link
Member

Choose a reason for hiding this comment

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

This sentence reads a little awkwardly now.... The "additional powers" is now kind of a dangling reference which used to point to the "...the awesome power...." in the formerly preceding sentence. The new "...much more powerful" doesn't set up quite the same parallelism. Any way to tweak this wording?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm yeah. I merged the first two groups together and switched the third to saying the more straightforward "enable type typed linting", WDYT?

@kirkwaiblinger kirkwaiblinger added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Feb 10, 2025
@JoshuaKGoldberg JoshuaKGoldberg merged commit e4994c5 into typescript-eslint:main Feb 10, 2025
65 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Development

Successfully merging this pull request may close these issues.

Docs: Highlight performance issues with type-aware rules
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy