Skip to content

Commit ada3320

Browse files
chore: added prettier and settings
1 parent 1292791 commit ada3320

File tree

4 files changed

+72
-35
lines changed

4 files changed

+72
-35
lines changed

.prettierignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Dependencies
2+
node_modules/
3+
package-lock.json
4+
yarn.lock
5+
pnpm-lock.yaml
6+
7+
# Build outputs
8+
dist/
9+
build/
10+
out/
11+
coverage/
12+
13+
# Generated files
14+
*.min.js
15+
*.min.css
16+
17+
# Documentation - keep manual formatting
18+
*.md
19+
20+
# Config files that should keep specific formatting
21+
.github/
22+
.vscode/
23+
.claude/
24+
package.json
25+
tsconfig.json
26+
*.config.js
27+
*.config.ts

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": false,
5+
"printWidth": 100,
6+
"tabWidth": 2,
7+
"useTabs": false,
8+
"arrowParens": "always",
9+
"endOfLine": "lf"
10+
}

package-lock.json

Lines changed: 32 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"test:ci": "jest --ci --reporters=default --reporters=jest-junit",
1111
"test:watch": "jest --watch",
1212
"test:coverage": "jest --coverage",
13-
"tsup": "tsup src/index.ts --dts --format cjs,esm --out-dir dist"
13+
"tsup": "tsup src/index.ts --dts --format cjs,esm --out-dir dist",
14+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"examples/**/*.ts\""
1415
},
1516
"author": "",
1617
"license": "ISC",
@@ -24,6 +25,7 @@
2425
"dotenv": "^17.2.3",
2526
"jest": "^30.2.0",
2627
"jest-junit": "^16.0.0",
28+
"prettier": "3.8.1",
2729
"ts-jest": "^29.4.5",
2830
"typescript": "^5.8.3"
2931
},

0 commit comments

Comments
 (0)