Skip to content

Commit

Permalink
Removes is-ci, pinst (#177)
Browse files Browse the repository at this point in the history
Removes is-ci, pinst and uses prepare + local script
  • Loading branch information
mattxwang committed Apr 11, 2021
1 parent de31cfe commit 1a27001
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 92 deletions.
4 changes: 3 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
[ -n "$CI" ] && exit 0

. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx --no-install lint-staged
91 changes: 5 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
],
"scripts": {
"format": "prettier . --write",
"prepare": "is-ci || husky install",
"prepare": "husky install",
"lint:formatting": "prettier . --check",
"lint:js": "eslint . --ignore-path .gitignore",
"lint:md": "remark . --quiet --frail --ignore-path .gitignore",
"lint": "npm-run-all --parallel lint:*",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"release": "np",
"test": "jest",
"watch": "jest --watch"
Expand Down Expand Up @@ -54,12 +52,10 @@
"eslint": "^7.21.0",
"eslint-config-stylelint": "^13.1.0",
"husky": "^6.0.0",
"is-ci": "^3.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"np": "^7.4.0",
"npm-run-all": "^4.1.5",
"pinst": "^2.1.6",
"prettier": "^2.2.1",
"remark-cli": "^9.0.0",
"stylelint": "^13.12.0"
Expand Down

0 comments on commit 1a27001

Please sign in to comment.