From 77e7ce388cca3fa280eba0ccea04bc08f1a751c9 Mon Sep 17 00:00:00 2001 From: Dorian Karter Date: Sun, 10 Apr 2022 00:38:26 -0500 Subject: [PATCH] Add `yarn format` for formatting files Overwrites the files with their formatted version using prettier. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 65a0525..013897a 100644 --- a/package.json +++ b/package.json @@ -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"