Skip to content

Commit 548a7f6

Browse files
Harsh Bajpaibajpai244
authored andcommitted
feat: add formatter
1 parent a93d5f2 commit 548a7f6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.prettierrc

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"build": "tsc --project tsconfig.json && cp -r src/vendors dist/vendors",
1010
"clean": "rm -rf dist types",
11+
"format": "prettier --write \"**/*.js\" \"**/*.ts\"",
1112
"lint": "eslint .",
1213
"test": "echo 1"
1314
},

0 commit comments

Comments
 (0)