prettier --list-different
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user