Skip to content

Commit

Permalink
Set up prettier-maven-plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
motlin committed May 10, 2024
1 parent 5328a22 commit 8d18165
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions liftwizard-maven-build/liftwizard-profile-parent/pom.xml
Expand Up @@ -31,6 +31,22 @@

<description>Liftwizard profiles parent is a published parent pom with profiles that are off by default that enable several linters and validators.</description>

<build>
<plugins>
<plugin>
<groupId>com.hubspot.maven.plugins</groupId>
<artifactId>prettier-maven-plugin</artifactId>
<version>0.22</version>
<configuration>
<prettierJavaVersion>2.6.0</prettierJavaVersion>
<printWidth>120</printWidth>
<tabWidth>4</tabWidth>
<useTabs>false</useTabs>
</configuration>
</plugin>
</plugins>
</build>

<profiles>

<!--region Phase 1: validate-->
Expand Down Expand Up @@ -85,6 +101,48 @@
</plugins>
</build>
</profile>

<profile>
<id>prettier-check</id>

<build>
<plugins>
<plugin>
<groupId>com.hubspot.maven.plugins</groupId>
<artifactId>prettier-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>prettier-write</id>

<build>
<plugins>
<plugin>
<groupId>com.hubspot.maven.plugins</groupId>
<artifactId>prettier-maven-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>write</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!--endregion Phase 1: validate-->

<!--region Phase 15: test-->
Expand Down

0 comments on commit 8d18165

Please sign in to comment.