Add yarn format for formatting files

Overwrites the files with their formatted version using prettier.
This commit is contained in:
Dorian Karter 2022-04-10 00:38:26 -05:00
parent 765ab6d643
commit 77e7ce388c

View file

@ -39,6 +39,7 @@
"eject": "react-scripts eject",
"lint": "eslint --config .eslintrc.js",
"prettier": "prettier --config .prettierrc.js '{data,src}/**/*.{json,ts,tsx}'",
"format": "yarn prettier -w",
"http-server:data": "http-server ./ -c-1",
"http-server:app": "http-server ./build --proxy http://localhost:8080 --port 3000",
"serve:production": "npm-run-all --parallel http-server:data http-server:app"