Skip to content

Commit 395383c

Browse files
authored
format: Configure Prettier for all workspaces (#650)
This PR adds: * Add Prettier as a devDependency with global `.prettierrc.json` configuration * Add `prettier` npm script for all workspaces: * `npm run prettier` in a specific workspace will only format the files in the workspace * `npm run prettier` in root directory will format the files in all workspaces * Run Prettier on all workspaces to format all relevant files
1 parent a3a63d2 commit 395383c

31 files changed

+5416
-4370
lines changed

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "es5",
10+
"bracketSpacing": true,
11+
"arrowParens": "always"
12+
}

cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"module": "src/index.ts",
55
"type": "module",
66
"scripts": {
7-
"typecheck": "tsc --noEmit"
7+
"typecheck": "tsc --noEmit",
8+
"prettier": "prettier --write ./src"
89
},
910
"devDependencies": {
1011
"@types/bun": "latest",

0 commit comments

Comments
 (0)