prettier --list-different

This commit is contained in:
Kent C. Dodds
2019-07-31 20:42:46 -06:00
parent a8d752b04f
commit b41c948eeb

View File

@@ -6,7 +6,10 @@
"scripts": { "scripts": {
"build": "babel src --out-dir dist", "build": "babel src --out-dir dist",
"lint": "eslint --ignore-path .gitignore .", "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": { "devDependencies": {
"@babel/cli": "^7.5.5", "@babel/cli": "^7.5.5",