Skip to content

Commit c1364e5

Browse files
committed
add prettier
1 parent aa0fdd9 commit c1364e5

21 files changed

Lines changed: 3362 additions & 1364 deletions

.eslintignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
/dist
1+
/dist
2+
/.cache
3+
/.vscode
4+
/.node_modules
5+
/public

.github/ISSUE_TEMPLATE/new-blog-post-idea.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: New blog post idea
33
about: Old blog post ideas also acceptable
4-
title: ''
4+
title: ""
55
labels: IDEA
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
```[tasklist]

.github/ISSUE_TEMPLATE/retro.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
name: Retro gissue for published post
33
about: For already published things that never had gissues
4-
title: ''
4+
title: ""
55
labels: pub
6-
assignees: ''
7-
6+
assignees: ""
87
---

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,19 @@ jobs:
8585
run: pnpm install
8686
- name: Run eslint
8787
run: pnpm run lint
88+
formatting:
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v2
92+
- uses: pnpm/action-setup@v2.2.2
93+
with:
94+
version: ${{ env.PNPM_VERSION }}
95+
- name: Use Node.js ${{ env.NODE_VERSION }}
96+
uses: actions/setup-node@v2
97+
with:
98+
node-version: ${{ env.NODE_VERSION }}
99+
cache: "pnpm"
100+
- name: Install
101+
run: pnpm install
102+
- name: Check formatting
103+
run: pnpm prettier --check .

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/dist
2+
/.cache
3+
/.vscode
4+
/.node_modules
5+
/public

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"cache:clear": "rm -rf .cache",
1818
"check": "astro check",
1919
"check:ts": "tsc --noEmit",
20-
"lint": "eslint ."
20+
"lint": "eslint .",
21+
"format": "prettier --write ."
2122
},
2223
"dependencies": {
2324
"@astrojs/prefetch": "^0.2.3",
@@ -44,6 +45,7 @@
4445
"@typescript-eslint/eslint-plugin": "^6.1.0",
4546
"@typescript-eslint/parser": "^6.1.0",
4647
"eslint": "^8.45.0",
48+
"prettier": "3.0.0",
4749
"typescript": "^5.1.6",
4850
"vitest": "^0.31.4"
4951
}

0 commit comments

Comments
 (0)