Skip to content

Commit eeeb23a

Browse files
committed
add prettier checks
1 parent aeeb2bd commit eeeb23a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ jobs:
2626
- uses: actions/checkout@v4
2727
- uses: wyvox/action-setup-pnpm@v3
2828
- run: pnpm install --no-lockfile
29+
- run: pnpm lint
2930
- run: pnpm build
3031
- run: pnpm vitest ${{ matrix.testenv.args }}

.prettierrc.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"embeddedLanguageFormatting": "off",
6+
"singleQuote": true,
7+
"semi": true,
8+
"quoteProps": "preserve",
9+
"bracketSpacing": false
10+
}

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"build": "tsc && vite build",
2121
"dev": "vite",
2222
"prepack": "npm run build",
23+
"lint": "prettier --check .",
24+
"lint:fix": "prettier --write .",
2325
"test": "vitest"
2426
},
2527
"devDependencies": {

0 commit comments

Comments
 (0)