Skip to content

Commit

Permalink
ci: add .prettierrc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Sep 26, 2023
1 parent 02d5ecf commit 9e5ea6d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://json.schemastore.org/prettierrc.json
# explicitly setting schema required, since using non-standard filename
#───────────────────────────────────────────────────────────────────────────────
# DOCS https://prettier.io/docs/en/options.html
#───────────────────────────────────────────────────────────────────────────────

# INFO
# printWidth (max-line-length) overrides .editorconfig,
# (not using .editorconfig to set it since it sets vim's textwidth, which I
# prefer to be 80 for formatoptions)
printWidth: 105
quoteProps: consistent

overrides:
- files: ["*.yml", "*.yaml"]
options: { printWidth: 120 }
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fi

# Autofixing & Linting
stylelint --fix "$CSS_PATH" &>/dev/null
prettier --max-length=105 "$CSS_PATH"
prettier "$CSS_PATH"
mv -f temp "$CSS_PATH"

#───────────────────────────────────────────────────────────────────────────────
Expand Down

0 comments on commit 9e5ea6d

Please sign in to comment.