Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
chore: use swc for tests instead of Babel#4584
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nx-cloudbot commentedFeb 22, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day. |
netlifybot commentedFeb 22, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
❌ Deploy Preview fortypescript-eslint failed. 🔨 Explore the source changes:9216077 🔍 Inspect the deploy log:https://app.netlify.com/sites/typescript-eslint/deploys/621fbd8d0070c70008e82308 |
swc-project/swc#3672 was discovered as part of this PR. https://github.com/typescript-eslint/typescript-eslint/runs/5292666530?check_suite_focus=true
|
codecovbot commentedFeb 22, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #4584 +/- ##==========================================+ Coverage 92.41% 94.23% +1.82%========================================== Files 350 151 -199 Lines 12059 7933 -4126 Branches 3430 2560 -870 ==========================================- Hits 11144 7476 -3668+ Misses 642 262 -380+ Partials 273 195 -78
Flags with carried forward coverage won't be shown.Click here to find out more.
|
@@ -85,57 +85,54 @@ export default util.createRule({ | |||
}), | |||
...(option === 'type' && { | |||
TSInterfaceDeclaration(node): void { | |||
const fix = isCurrentlyTraversedNodeWithinModuleDeclaration() |
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.
These changes don't do anything other than get us aroundswc-project/swc#3672
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
PR Checklist
Overview
Uses
@swc/jest
instead of Babel for transpiling during tests. Roughly the same approach astypescript-eslint/tslint-to-eslint-config#1367.Performance runs
hyperfine 'yarn jest' -m 25 -p 'yarn jest --clearCache' --show-output
within the below packages. Terminal was in focus and no actions taken on open programs during test runs.eslint-plugin
eslint-plugin-internal
Raw data
Babel in
packages/eslint-plugin
pre-#4599:SWC in
packages/eslint-plugin
pre-#4599:Babel in
packages/eslint-plugin-internal
:SWC in
packages/eslint-plugin-internal
: