Skip to content

Commit d4f9b59

Browse files
committed
feat: add prettier config file
- Create .prettierrc.yaml with formatting options - Configure YAML, JSON, and Markdown specific settings - Remove TODO comment from justfile
1 parent 6795c82 commit d4f9b59

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/actions/lint-files/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
id: lint
2020
shell: bash
2121
run: |
22-
set +e
22+
set +eou pipefail
2323
HAS_ERRORS=false
2424
FIX="${{ inputs.fix }}"
2525

.prettierrc.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Prettier configuration
2+
# https://prettier.io/docs/en/configuration.html
3+
4+
# General settings
5+
printWidth: 100
6+
tabWidth: 2
7+
useTabs: false
8+
endOfLine: lf
9+
10+
# Only format these file types
11+
overrides:
12+
- files:
13+
- "*.yaml"
14+
- "*.yml"
15+
options:
16+
singleQuote: true
17+
- files:
18+
- "*.json"
19+
options:
20+
trailingComma: none
21+
- files:
22+
- "*.md"
23+
options:
24+
proseWrap: preserve

justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ setup:
2121
mise install -y
2222
@echo "Setup complete!"
2323

24-
# Run all linters
24+
# Run all linters (uses .prettierrc.yaml for config)
2525
lint:
2626
command -v prettier >/dev/null 2>&1 || { just setup ; }
27-
# TODO convert to use prettier config file
2827
prettier --write "**/*.{yaml,yml,json,md}" --list-different
2928

3029
lint-check:

0 commit comments

Comments
 (0)