Skip to content

Commit

Permalink
Simplify lint npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Jul 6, 2019
1 parent a586f64 commit 6ea0447
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn run eslint-check && eslint ."
"pre-push": "yarn lint"
}
},
"lint-staged": {
Expand All @@ -33,8 +33,9 @@
},
"scripts": {
"build": "cross-env NODE_ENV=production babel src --out-dir .",
"eslint-check": "eslint --print-config ./index.js | eslint-config-prettier-check",
"prepublishOnly": "yarn eslint-check && eslint . && yarn build"
"prelint": "eslint --print-config ./index.js | eslint-config-prettier-check",
"lint": "eslint .",
"prepublishOnly": "yarn lint && yarn build"
},
"peerDependencies": {
"gatsby": ">=2",
Expand Down

0 comments on commit 6ea0447

Please sign in to comment.