From af254b533f05e61aab991ecf2106954a8ead03bc Mon Sep 17 00:00:00 2001 From: Eli <88557639+lishaduck@users.noreply.github.com> Date: Sat, 9 Nov 2024 23:27:29 -0600 Subject: [PATCH] chore: remove prettier-ignore from generated files Addresses @jfmengels's feedback from https://github.com/jfmengels/node-elm-review/pull/187#discussion_r1667658469. Co-authored-by: Jeroen Engels --- .../elm-review-package-tests/check-previews-compile.js | 5 +++-- .../elm-review-package-tests/check-previews-compile.js | 5 +++-- .../elm-review-package-tests/check-previews-compile.js | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/new-package/elm-review-package-tests/check-previews-compile.js b/new-package/elm-review-package-tests/check-previews-compile.js index 13699cdc5..be0acc61b 100644 --- a/new-package/elm-review-package-tests/check-previews-compile.js +++ b/new-package/elm-review-package-tests/check-previews-compile.js @@ -99,9 +99,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) { const remainingKeys = Object.keys(previewDependencies); if (remainingKeys.length > 0) { + const extraneousDependencies = remainingKeys.join(', '); + console.error( - // prettier-ignore - `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}` + `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}` ); process.exit(1); } diff --git a/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js b/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js index dcafe0169..ee48a13e6 100644 --- a/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js +++ b/test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js @@ -98,9 +98,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) { const remainingKeys = Object.keys(previewDependencies); if (remainingKeys.length > 0) { + const extraneousDependencies = remainingKeys.join(', '); + console.error( - // prettier-ignore - `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}` + `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}` ); process.exit(1); } diff --git a/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js b/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js index dcafe0169..ee48a13e6 100644 --- a/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js +++ b/test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js @@ -98,9 +98,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) { const remainingKeys = Object.keys(previewDependencies); if (remainingKeys.length > 0) { + const extraneousDependencies = remainingKeys.join(', '); + console.error( - // prettier-ignore - `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}` + `There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}` ); process.exit(1); }