Skip to content

Commit

Permalink
Fail CI build on prettier errors (#10101)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Dec 28, 2024
1 parent 65ab501 commit 56b7c1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "yarn prod",
"start": "yarn dev --watch",
"lint:js": "eslint . && prettier --check .",
"lint:js-ci": "eslint . -f checkstyle -o target/eslint-warnings.xml && prettier --check .",
"lint:js-ci": "eslint . -f checkstyle -o target/eslint-warnings.xml",
"lint:css": "stylelint src/main/scss",
"lint:css-ci": "stylelint src/main/scss --custom-formatter stylelint-checkstyle-reporter -o target/stylelint-warnings.xml",
"lint:ci": "yarn lint:js-ci && yarn lint:css-ci",
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,18 @@ THE SOFTWARE.
<skip>${yarn.lint.skip}</skip>
</configuration>
</execution>
<execution>
<id>prettier</id>
<goals>
<goal>corepack</goal>
</goals>
<phase>test</phase>
<configuration>
<arguments>yarn exec prettier --check .</arguments>
<skip>${yarn.lint.skip}</skip>
<testFailureIgnore>false</testFailureIgnore>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down

0 comments on commit 56b7c1d

Please sign in to comment.