Skip to content

Commit 650e66f

Browse files
author
Kent C. Dodds
committed
prettier --list-different
1 parent 544df8b commit 650e66f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"scripts": {
77
"build": "babel src --out-dir dist",
88
"lint": "eslint --ignore-path .gitignore .",
9-
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|json)\""
9+
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|json)\"",
10+
"format": "npm run prettier -- --write",
11+
"check-format": "npm run prettier -- --list-different",
12+
"validate": "npm run check-format && npm run lint && npm run build"
1013
},
1114
"devDependencies": {
1215
"@babel/cli": "^7.7.0",

0 commit comments

Comments
 (0)