-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
docs: add 'Typed Linting' blog post #10025
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
docs: add 'Typed Linting' blog post #10025
Conversation
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. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -16,6 +16,8 @@ To tap into TypeScript's additional powers, there are two small changes you need | |||
2. Add `languageOptions.parserOptions` to tell our parser how to find the TSConfig for each source file. | |||
|
|||
```js title="eslint.config.mjs" | |||
import tseslint from 'typescript-eslint'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tangent: It's been bugging me that you can't copy & paste the full code snippet from this page. 😄
|
||
const filePath = './data.json'; | ||
|
||
readFromCache(filePath);) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
readFromCache(filePath);) | |
readFromCache(filePath); |
Something should fail the build on this...
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10025 +/- ##
==========================================
- Coverage 88.69% 86.02% -2.68%
==========================================
Files 426 428 +2
Lines 14829 14921 +92
Branches 4313 4327 +14
==========================================
- Hits 13153 12836 -317
- Misses 1533 1741 +208
- Partials 143 344 +201
Flags with carried forward coverage won't be shown. Click here to find out more. |
Co-authored-by: Kirk Waiblinger <kirk.waiblinger@gmail.com>
16f4d90
into
typescript-eslint:main
PR Checklist
Overview
Adds a ~10 minute read explaining:
I'm planning on using this as a springboard for our more in-depth, rule-specific blog posts soon (#6415, #8517, #9103).
💖