Skip to content

Commit 28031d5

Browse files
lishaduckjfmengels
andcommitted
chore: remove prettier-ignore from generated files
Addresses @jfmengels's feedback from #187 (comment). Co-authored-by: Jeroen Engels <[email protected]>
1 parent 8e0d5c6 commit 28031d5

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

new-package/elm-review-package-tests/check-previews-compile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) {
9999

100100
const remainingKeys = Object.keys(previewDependencies);
101101
if (remainingKeys.length > 0) {
102+
const extraneousDependencies = remainingKeys.join(', ');
103+
102104
console.error(
103-
// prettier-ignore
104-
`There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}`
105+
`There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}`
105106
);
106107
process.exit(1);
107108
}

test/run-snapshots/elm-review-something-for-new-rule/elm-review-package-tests/check-previews-compile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) {
9898

9999
const remainingKeys = Object.keys(previewDependencies);
100100
if (remainingKeys.length > 0) {
101+
const extraneousDependencies = remainingKeys.join(', ');
102+
101103
console.error(
102-
// prettier-ignore
103-
`There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}`
104+
`There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}`
104105
);
105106
process.exit(1);
106107
}

test/run-snapshots/elm-review-something/elm-review-package-tests/check-previews-compile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ function checkDepsAreCompatible(exampleConfiguration, previewDependencies) {
9898

9999
const remainingKeys = Object.keys(previewDependencies);
100100
if (remainingKeys.length > 0) {
101+
const extraneousDependencies = remainingKeys.join(', ');
102+
101103
console.error(
102-
// prettier-ignore
103-
`There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${remainingKeys.join(', ')}`
104+
`There are extraneous dependencies in the ${exampleConfiguration}/ configuration: ${extraneousDependencies}`
104105
);
105106
process.exit(1);
106107
}

0 commit comments

Comments
 (0)