Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Add the formatter back
Browse files Browse the repository at this point in the history
  • Loading branch information
EzraBrooks committed Aug 27, 2024
1 parent 8cb3514 commit dfc572d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,14 @@ repos:
rev: v2.10.0
hooks:
- id: hadolint-docker

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
# Use Prettier to lint XML files because, well.. its rules are prettier than most linters, as the name implies.
# Also we use it in the UI, so it's familiar.
- id: prettier
additional_dependencies:
- "[email protected]"
- "@prettier/[email protected]"
files: \.(xml|xacro)$
5 changes: 5 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: [require.resolve("@prettier/plugin-xml")],
xmlWhitespaceSensitivity: "ignore",
xmlQuoteAttributes: "double"
}

0 comments on commit dfc572d

Please sign in to comment.