From 437ed30ddbfe13348f8d1746abaf535f14d920a3 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Fri, 14 Sep 2018 20:38:49 -0600 Subject: [PATCH] list different --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4abd9d3..b21b79c 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "scripts": { "lint": "eslint src", - "format": "prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)\"" + "format": "npm run prettier -- --write", + "prettier": "prettier \"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)\"", + "validate": "npm run lint && npm run prettier -- --list-different" }, "keywords": [], "author": "Kent C. Dodds (http://kentcdodds.com/)",