-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(typescript-estree): support for parsing 3.7 features #1045
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. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
packages/typescript-estree/tests/lib/__snapshots__/typescript.ts.snap
Outdated
Show resolved
Hide resolved
I added to the README to clarify that we will not look to support pre-releases if doing so does not negatively impact the support for the latest stable version |
# Conflicts: # .gitignore # yarn.lock
Codecov Report
@@ Coverage Diff @@
## master #1045 +/- ##
==========================================
+ Coverage 94.01% 94.06% +0.04%
==========================================
Files 115 115
Lines 5064 5086 +22
Branches 1416 1423 +7
==========================================
+ Hits 4761 4784 +23
+ Misses 175 174 -1
Partials 128 128
|
@bradzacher FYI still failing on unit tests |
Yeah there's something weird with ts-jest, composite projects and ts 3.7. Ill take another look. edit: it stopped reproing locally because of the jest cache, running I don't know why running the test individually "fixed" it. Running without the cache repros when running individually or as a batch. edit: It seems like 3.7 is stricter with composite projects and project configs, so TS was erroring when the tests attempted to require a |
Fixes #1033 (this doesn't add support for them in rules).
The AST I've gone with here is the same as the one babel (and flow) uses.
It looks like there is still an open question within ESTree itself whether or not it's the right direction to go in: estree/estree#146
Lacking a better option, I figured this was a good AST rep to go with.