Skip to content

Commit

Permalink
[BUILD] add prettier config for shell
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Marwell <bmarwell@apache.org>
  • Loading branch information
bmarwell committed Feb 2, 2024
1 parent 021a333 commit cba755d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,44 @@ under the License.
<tagNameFormat>maven-wrapper-@{project.version}</tagNameFormat>
</configuration>
</plugin>

<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<formats>
<format>
<includes>
<include>src/**/*.sh</include>
<include>src/**/mvnw</include>
<include>src/**/mvnwDebug</include>
<include>src/**/only-mvnw</include>
<include>src/**/only-mvnwDebug</include>
</includes>

<prettier>
<devDependencyProperties>
<property>
<name>prettier</name>
<value>2.8.2</value>
</property>
<property>
<name>prettier-plugin-sh</name>
<value>0.12.8</value>
</property>
</devDependencyProperties>
<config>
<parser>sh</parser>
<useTabs>false</useTabs>
<tabWidth>2</tabWidth>
<switchCaseIndent>false</switchCaseIndent>
<spaceRedirects>false</spaceRedirects>
</config>
</prettier>
</format>
</formats>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit cba755d

Please sign in to comment.