Skip to content

Commit 8cbab58

Browse files
committed
chore: add prettier setup
1 parent 82440c2 commit 8cbab58

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
package-lock.json
3+
build
4+
.wrangler
5+
public
6+
wrangler.toml

.prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 2,
4+
"printWidth": 80,
5+
"endOfLine": "lf",
6+
"singleQuote": true,
7+
"arrowParens": "always",
8+
"bracketSpacing": true,
9+
"trailingComma": "es5"
10+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"pretty": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\"",
3131
"build": "rollup -c",
3232
"prepublishOnly": "npm run build",
33-
"start:node": "node build/start-server.js"
33+
"start:node": "node build/start-server.js",
34+
"format": "prettier --write \"./**/*.{js,jsx,ts,tsx,json}\""
3435
},
3536
"dependencies": {
3637
"@aws-crypto/sha256-js": "^5.2.0",

0 commit comments

Comments
 (0)