chore(tools): do not run tests on pre-commit

pull/948/head
Jan van Brügge 4 years ago
parent cd55ebd34e
commit aad70ebb8c
No known key found for this signature in database
GPG Key ID: 88E0BF7B7A546481

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm exec -- npm-run-all -s docs check-clean test
npm exec -- lint-staged

1635
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -42,6 +42,7 @@
"karma-mocha-reporter": "2.2.5",
"karma-typescript": "^5.4.0",
"latest-snabbdom-release": "npm:snabbdom@2.1.0",
"lint-staged": "^10.5.4",
"lodash.shuffle": "4.2.0",
"mathjs": "9.2.0",
"mocha": "8.1.3",
@ -66,7 +67,7 @@
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"docs": "remark . --output",
"check-clean": "git diff --exit-code",
"check-docs": "npm run docs && git diff --exit-code",
"lint:js": "eslint --ext .ts,.tsx,.js --ignore-path .gitignore .",
"lint:editorconfig": "editorconfig-checker",
"lint": "run-s lint:editorconfig lint:js",
@ -92,6 +93,10 @@
"url": "https://github.com/snabbdom/snabbdom/issues"
},
"prettier": {},
"lint-staged": {
"*.(ts|tsx|js)": "prettier --write",
"*.md": ["npm run check-docs", "prettier --write"]
},
"remarkConfig": {
"plugins": [
[

Loading…
Cancel
Save