Skip to content

Commit 0c6353f

Browse files
authored
Set up Prettier for auto-formatting (#267)
1 parent 4c53ada commit 0c6353f

File tree

6 files changed

+3993
-3957
lines changed

6 files changed

+3993
-3957
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ insert_final_newline = true
1010
[*.md]
1111
trim_trailing_whitespace = false
1212

13-
[*.{yaml,yml,json,md}]
13+
[*.{yaml,yml,json,json5,md,toml}]
1414
indent_size = 2

.git-blame-ignore-revs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# git-blame ignored revisions
2+
# To configure, run
3+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
4+
# Requires Git > 2.23
5+
# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
6+
7+
# Initial Prettier reformatting (#TBC)

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
with:
5555
node-version-file: ".nvmrc"
5656
- run: npm ci --no-audit
57+
- run: npm run lint || true
5758
- run: npm run build
5859
- run: pipx install "poetry>=2.1.2,<3"
5960
- uses: actions/setup-python@v5

.prettierrc.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://prettier.io/docs/options.html.
2+
# Prettier also reads .editorconfig.
3+
printWidth = 80
4+
singleQuote = true
5+
quoteProps = 'consistent'
6+
trailingComma = 'all'
7+
arrowParens = 'always'
8+
proseWrap = 'preserve'

0 commit comments

Comments
 (0)