-
Notifications
You must be signed in to change notification settings - Fork 495
[rewrite] apply ECMAScript6BestPractices
#2768
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e8c21f3 to
9fdd689
Compare
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/common-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.varToLet
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/let.js}
org.openrewrite.codemods.ecmascript.5to6.amdToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/amd.js}
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/eslint-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/prettier-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.varToLet
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/let.js}
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Please review and commit the results.
Estimate time saved: 20m
Signed-off-by: Vincent Potucek <vpotucek@me.com>
9fdd689 to
dedb8c8
Compare
Pankraz76
commented
Nov 24, 2025
| const debug_serve = false; // set to true for debug log output in node process | ||
| const shutdownServer = require("http-graceful-shutdown"); | ||
| const express = require("express"); | ||
| // this file will be glued to the top of the specific xy-serve.js file |
Contributor
Author
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.
moving here as its a bug to rewrite.
endless copying the comment every run:
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
// this file will be glued to the top of the specific xy-serve.js file
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/common-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.varToLet
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/let.js}
org.openrewrite.codemods.ecmascript.5to6.amdToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/amd.js}
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/eslint-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/prettier-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.varToLet
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/let.js}
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Please review and commit the results.
Estimate time saved: 20m
Signed-off-by: Vincent Potucek <vpotucek@me.com>
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/common-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.varToLet
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/let.js}
org.openrewrite.codemods.ecmascript.5to6.amdToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/amd.js}
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/eslint-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/prettier-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Changes have been made to lib/src/main/resources/com/diffplug/spotless/npm/tsfmt-serve.js by:
org.openrewrite.codemods.ecmascript.5to6.ECMAScript6BestPractices
org.openrewrite.codemods.ecmascript.5to6.varToLet
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/let.js}
org.openrewrite.codemods.ecmascript.5to6.cjsToEsm
org.openrewrite.codemods.ApplyCodemod: {transform=5to6-codemod/transforms/cjs.js, codemodArgs=[hoist=true]}
Please review and commit the results.
Estimate time saved: 20m
Signed-off-by: Vincent Potucek <vpotucek@me.com>
…to fix-ECMAScript6BestPractices
Contributor
Author
|
might be IO-flaky CI: |
Pankraz76
commented
Nov 24, 2025
| public class NpmTestsWithDynamicallyInstalledNpmInstallationTest extends MavenIntegrationHarness { | ||
|
|
||
| @Test | ||
| @Disabled |
Contributor
Author
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.
why this one failing, please?
item:
at app//com.diffplug.gradle.spotless.NpmTestsWithoutNpmInstallationTest.useNpmFromNodeGradlePlugin_example2(NpmTestsWithoutNpmInstallationTest.java:94)
This was referenced Nov 27, 2025
Contributor
Author
|
consider reopen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nice to see rewrite also fixing .js stuff as well.
ECMAScript6BestPracticescheckstyle/checkstyle#18158ECMAScript6BestPracticesendless comment copy bug. openrewrite/rewrite#6330