|
41 | 41 | "format:check": "prettier --config .prettierrc.json --ignore-path .prettierignore --check .",
|
42 | 42 | "lint": "eslint --config .eslintrc.json --ignore-path .eslintignore .",
|
43 | 43 | "lint:fix": "eslint --config .eslintrc.json --ignore-path .eslintignore . --fix",
|
44 |
| - "prepare": "npm run build", |
| 44 | + "prepare": "husky install", |
45 | 45 | "run": "truffle run syntest-solidity",
|
46 | 46 | "test": "mocha --config .mocharc.json",
|
47 | 47 | "test:coverage": "nyc mocha --config .mocharc.json",
|
|
70 | 70 | "web3-utils": "1.8.1"
|
71 | 71 | },
|
72 | 72 | "devDependencies": {
|
| 73 | + "@commitlint/cli": "^17.4.2", |
| 74 | + "@commitlint/config-conventional": "^17.4.2", |
73 | 75 | "@types/chai": "4.3.4",
|
74 | 76 | "@types/chai-as-promised": "7.1.1",
|
75 | 77 | "@types/mocha": "10.0.1",
|
|
78 | 80 | "@typescript-eslint/eslint-plugin": "5.45.1",
|
79 | 81 | "@typescript-eslint/parser": "5.45.1",
|
80 | 82 | "chai": "4.3.7",
|
| 83 | + "commitlint": "^17.4.2", |
81 | 84 | "eslint": "8.29.0",
|
82 | 85 | "eslint-config-prettier": "8.5.0",
|
| 86 | + "husky": "^8.0.3", |
| 87 | + "lint-staged": "^13.1.0", |
83 | 88 | "mocha": "10.2.0",
|
84 | 89 | "nyc": "15.1.0",
|
85 | 90 | "prettier": "2.8.1",
|
|
89 | 94 | },
|
90 | 95 | "engines": {
|
91 | 96 | "node": ">=10.24.0"
|
| 97 | + }, |
| 98 | + "lint-staged": { |
| 99 | + "**/*": [ |
| 100 | + "npx prettier --config .prettierrc.json --ignore-path .prettierignore --write .", |
| 101 | + "npx eslint --config .eslintrc.json --ignore-path .eslintignore --fix ." |
| 102 | + ] |
92 | 103 | }
|
93 | 104 | }
|
0 commit comments