-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(experimental-utils): add literal types to global
option
#3634
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
feat(experimental-utils): add literal types to global
option
#3634
Conversation
Thanks for the PR, @dora1998! 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. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
Nx Cloud ReportCI ran the following commands for commit f36944a. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch Sent with 💌 from NxCloud. |
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.
thanks! 1 comment.
| 'readonly' | ||
| 'writable' | ||
| 'readable' | ||
| 'writeable' | ||
| 'off' | ||
| boolean; |
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.
because these are considered deprecated - let's leave them out.
For the types where possible we've been excluding deprecated values/apis to help push people towards the correct things and prevent them from using old things that will be removed in a future version.
In the next major we can consider removing the boolean
as well, considering that is deprecated and instead the string values are preferred.
| 'readonly' | |
| 'writable' | |
| 'readable' | |
| 'writeable' | |
| 'off' | |
| boolean; | |
| 'readonly' | |
| 'writable' | |
| 'off' | |
| boolean; |
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.
It looks better:+1: I fixed it!
ec0eaac
to
f36944a
Compare
Codecov Report
@@ Coverage Diff @@
## master #3634 +/- ##
==========================================
- Coverage 92.68% 92.58% -0.11%
==========================================
Files 327 188 -139
Lines 11351 8480 -2871
Branches 3201 2607 -594
==========================================
- Hits 10521 7851 -2670
+ Misses 369 262 -107
+ Partials 461 367 -94
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
thanks!
global
optionglobal
option
In addition to boolean values, the string values below are allowed in
globals
field ofBaseConfig
.https://eslint.org/docs/user-guide/configuring/language-options#using-configuration-files-1