Skip to content

Commit 2dd8965

Browse files
committed
chore: add yarn format npm script to format with prettier
1 parent d91b702 commit 2dd8965

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@
7777
"prepublishOnly": "yarn clean-files && yarn copy-files",
7878
"commit": "npx git-cz",
7979
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./",
80-
"fix": "eslint --ext .js,.jsx,.ts,.tsx --fix ./"
80+
"fix": "eslint --ext .js,.jsx,.ts,.tsx --fix ./",
81+
"format": "prettier --write src/**/*.{ts,tsx}"
8182
},
8283
"eslintConfig": {
8384
"extends": "react-app"

0 commit comments

Comments
 (0)