Add yarn format
for formatting files
Overwrites the files with their formatted version using prettier.
This commit is contained in:
parent
765ab6d643
commit
77e7ce388c
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"lint": "eslint --config .eslintrc.js",
|
"lint": "eslint --config .eslintrc.js",
|
||||||
"prettier": "prettier --config .prettierrc.js '{data,src}/**/*.{json,ts,tsx}'",
|
"prettier": "prettier --config .prettierrc.js '{data,src}/**/*.{json,ts,tsx}'",
|
||||||
|
"format": "yarn prettier -w",
|
||||||
"http-server:data": "http-server ./ -c-1",
|
"http-server:data": "http-server ./ -c-1",
|
||||||
"http-server:app": "http-server ./build --proxy http://localhost:8080 --port 3000",
|
"http-server:app": "http-server ./build --proxy http://localhost:8080 --port 3000",
|
||||||
"serve:production": "npm-run-all --parallel http-server:data http-server:app"
|
"serve:production": "npm-run-all --parallel http-server:data http-server:app"
|
||||||
|
|
Loading…
Reference in a new issue