-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(typescript-estree): add TSImportType.source
#11591
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
fix(typescript-estree): add TSImportType.source
#11591
Conversation
|
Thanks for the PR, @fisker! 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 project configuration. |
|
View your CI Pipeline Execution ↗ for commit 1c6eae1
☁️ Nx Cloud last updated this comment at |
This reverts commit 91ec0bc.
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (4.16%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #11591 +/- ##
==========================================
- Coverage 90.52% 90.50% -0.02%
==========================================
Files 522 522
Lines 53353 53366 +13
Branches 8921 8920 -1
==========================================
+ Hits 48296 48300 +4
- Misses 5040 5050 +10
+ Partials 17 16 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Cherry-picked fix for #11593 (comment), hope the test will pass. |
This reverts commit daf5460.
JoshuaKGoldberg
left a comment
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.
LGTM, thanks! ✨
Will leave open for a bit in case someone else from @typescript-eslint/triage-team wants to take a look.
|
Strange, this was released, but not mentioned in the changelog. 6fb1551 Did I use the wrong |
Bump `acorn-test262` submodule to latest. It aligns its version of `test262` and `TypeScript` submodules to same versions as used in this repo, which fixes a bunch of erroneous ESTree conformance test failures. It also updates to latest version of TS-ESLint parser, which altered the shape of `TSImportType` (typescript-eslint/typescript-eslint#11591). The test cases broken by this are fixed in next PR (#16109).
…#16109) Fixes #16074. Convert `argument` field of `TSImportType` to `Literal` in TS-ESTree AST, and rename it to `source`. This follows the change made recently in TS-ESLint (typescript-eslint/typescript-eslint#11591).
Bump `acorn-test262` submodule to latest. It aligns its version of `test262` and `TypeScript` submodules to same versions as used in this repo, which fixes a bunch of erroneous ESTree conformance test failures. It also updates to latest version of TS-ESLint parser, which altered the shape of `TSImportType` (typescript-eslint/typescript-eslint#11591). The test cases broken by this are fixed in next PR (#16109).
…#16109) Fixes #16074. Convert `argument` field of `TSImportType` to `Literal` in TS-ESTree AST, and rename it to `source`. This follows the change made recently in TS-ESLint (typescript-eslint/typescript-eslint#11591).
|
Hmm, the PR title should be correct. Maybe it's an issue with changelog generation? |
|
Also, we are supposed to make this a non-breaking change, but it breaks eslint-plugin-unicorn, sindresorhus/eslint-plugin-unicorn#2829 (comment) I think that's because we removed How do we usually do with deprecated property? Keep or remove? |
|
Uh oh! @JamesHenry, at least one image you shared is missing helpful alt text. Check #11591 (comment) to fix the following violations:
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
|
|
Yeah that's it. We detect reverted hashes present in a commit in order to determine if a change was merged and reverted within the same release and can therefore strip it so that it isn't noise on the changelog. Because there are reverted references in the commit body, the overall change gets classed as a revert, which is hidden from the changelog |
|
I don't think there is any way for the release tooling to differentiate these scenarios, sadly I think it's down to maintainers to ensure the commit bodies are clean before merging. Tbh I always nuke the entire body when I squash merge... Revert commits during the lifecycle of a PR are a bit more of an uncommon thing in my experience, so I think that's why this specific case hasn't come up before. But yeah, overall those revert references have zero value for posterity because they were reverts of commits within a deleted PR branch, so I think the ultimate solution here is to make sure they are cleaned up on merge (SO wish GitHub had added squash merge validation hooks by now, it's been so long) |
Bump `acorn-test262` submodule to latest. It aligns its version of `test262` and `TypeScript` submodules to same versions as used in this repo, which fixes a bunch of erroneous ESTree conformance test failures. It also updates to latest version of TS-ESLint parser, which altered the shape of `TSImportType` (typescript-eslint/typescript-eslint#11591). The test cases broken by this are fixed in next PR (oxc-project#16109).
…oxc-project#16109) Fixes oxc-project#16074. Convert `argument` field of `TSImportType` to `Literal` in TS-ESTree AST, and rename it to `source`. This follows the change made recently in TS-ESLint (typescript-eslint/typescript-eslint#11591).


PR Checklist
TSImportTypewithImportExpression#11583Overview