diff --git a/package.json b/package.json index f189356..9cd5ede 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,10 @@ "scripts": { "build": "babel src --out-dir dist", "lint": "eslint --ignore-path .gitignore .", - "format": "prettier --ignore-path .gitignore --write \"**/*.+(js|json)\"" + "prettier": "prettier --ignore-path .gitignore --write \"**/*.+(js|json)\"", + "format": "npm run prettier -- --write", + "check-format": "npm run prettier -- --list-different", + "validate": "npm run check-format && npm run lint && npm run build" }, "devDependencies": { "@babel/cli": "^7.5.5",