-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): add config that disables type-aware linting #6470
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
Thanks for the PR, @bradzacher! 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comme 8000 nt
The reason will be displayed to describe this comment to others. Learn more.
Looks like some unrelated null
types got added in? Otherwise looks great!
program?: Program; | ||
project?: string | string[] | true; | ||
program?: Program | null; | ||
project?: string | string[] | true | null; |
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.
Is this needed for this PR?
It's also weird to me IMO to have null
be an option only for some of these.
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.
I added null because it's an explicit value to set these to off that won't get weirdly merged by ESLint's cascading config. It also means the configs can be json-serialized without losing any data (undefined
tells a json stringifier to omit the property).
It just means we can be sure these configs are robust.
I also considered using []
, but IIRC ESLint's cascading config logic will merge arrays together. Which means that []
is the same as not specifying a value at all.
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.
Got it, thanks - this is great then. Yay! 🙌
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## v6 #6470 +/- ##
==========================================
+ Coverage 87.10% 87.12% +0.01%
==========================================
Files 362 362
Lines 12471 12473 +2
Branches 3688 3688
==========================================
+ Hits 10863 10867 +4
+ Misses 1261 1260 -1
+ Partials 347 346 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
PR Checklist
Overview
Builds on top of the new config tooling to generate a config that disables type-aware linting.