Skip to content

Commit 295e0ed

Browse files
committed
chore(format): add prettier config and scripts
1 parent 9c99320 commit 295e0ed

4 files changed

Lines changed: 243 additions & 96 deletions

File tree

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
coverage
3+
test-results
4+
playwright-report
5+
node_modules

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 100
6+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
"prepack": "pnpm run build",
4646
"dev": "tsup --watch",
4747
"lint": "eslint .",
48+
"format": "prettier --write .",
49+
"format:check": "prettier --check .",
4850
"typecheck": "tsc -p tsconfig.build.json --noEmit",
4951
"test": "vitest run",
5052
"test:it": "vitest run --config vitest.it.config.ts",
@@ -80,6 +82,7 @@
8082
"eslint-config-prettier": "^10.1.8",
8183
"eslint-plugin-import-x": "^4.16.1",
8284
"jsdom": "^28.1.0",
85+
"prettier": "^3.8.1",
8386
"react": "^19.2.4",
8487
"react-dom": "^19.2.4",
8588
"tsup": "^8.5.1",

0 commit comments

Comments
 (0)