|
29 | 29 | "scripts": { |
30 | 30 | "lint": "eslint . --ignore-pattern '!.eslintrc.js'", |
31 | 31 | "prettylint": "prettylint docs/**/*.md README.md package.json", |
32 | | - "test": "jest", |
33 | | - "precommit": "lint-staged", |
34 | | - "commitmsg": "commitlint -e $GIT_PARAMS" |
| 32 | + "test": "jest" |
35 | 33 | }, |
36 | 34 | "devDependencies": { |
37 | | - "@commitlint/cli": "^6.0.1", |
38 | | - "@commitlint/config-conventional": "^6.0.2", |
| 35 | + "@commitlint/cli": "^7.0.0", |
| 36 | + "@commitlint/config-conventional": "^7.0.1", |
39 | 37 | "eslint": "^5.1.0", |
40 | | - "eslint-config-prettier": "^2.7.0", |
| 38 | + "eslint-config-prettier": "^3.0.1", |
41 | 39 | "eslint-plugin-eslint-plugin": "^1.4.0", |
42 | | - "eslint-plugin-node": "^6.0.0", |
43 | | - "eslint-plugin-prettier": "^2.3.1", |
44 | | - "husky": "^0.14.3", |
45 | | - "jest": "^22.0.4", |
46 | | - "jest-runner-eslint": "^0.4.0", |
47 | | - "lint-staged": "^7.0.0", |
| 40 | + "eslint-plugin-node": "^8.0.0", |
| 41 | + "eslint-plugin-prettier": "^3.0.0", |
| 42 | + "husky": "^1.0.1", |
| 43 | + "jest": "^23.4.1", |
| 44 | + "jest-runner-eslint": "^0.7.1", |
| 45 | + "lint-staged": "^8.0.4", |
48 | 46 | "prettier": "^1.10.2", |
49 | 47 | "prettylint": "^1.0.0" |
50 | 48 | }, |
|
90 | 88 | "extends": [ |
91 | 89 | "@commitlint/config-conventional" |
92 | 90 | ] |
| 91 | + }, |
| 92 | + "husky": { |
| 93 | + "hooks": { |
| 94 | + "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS", |
| 95 | + "pre-commit": "lint-staged" |
| 96 | + } |
93 | 97 | } |
94 | 98 | } |
0 commit comments