diff --git a/package.json b/package.json index da5c013..ba2105a 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,9 @@ "example:watch": "nodemon --exec babel-node examples", "example:inspect": "babel-node --inspect examples", "example:inspect:watch": "nodemon --exec babel-node --inspect examples", - "format": "standard --fix", + "pretty": "prettier --ignore-path .gitignore --write '**/*.(js|json|graphql)'", + "format": "npm-run-all --serial pretty format:*", + "format:js": "standard --fix", "report": "nyc report" }, "babel": { @@ -134,6 +136,7 @@ "nodemon": "^2.0.1", "npm-run-all": "^4.1.2", "nyc": "^15.0.0", + "prettier": "^2.0.2", "serverless": "^1.58.0", "serverless-domain-manager": "^3.2.1", "serverless-offline": "^6.1.2", diff --git a/yarn.lock b/yarn.lock index eca7d5f..85dce23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8322,6 +8322,11 @@ preserve@^0.2.0: resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= +prettier@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.2.tgz#1ba8f3eb92231e769b7fcd7cb73ae1b6b74ade08" + integrity sha512-5xJQIPT8BraI7ZnaDwSbu5zLrB6vvi8hVV58yHQ+QK64qrY40dULy0HSRlQ2/2IdzeBpjhDkqdcFBnFeDEMVdg== + pretty-hrtime@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"