diff --git a/package.json b/package.json index e887c5f..23dbcf1 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,9 @@ "prettify:packages": "lerna exec -- sort-package-json && sort-package-json", "release": "lerna publish from-package", "test": "yarn workspaces run test", - "precommit": "run-s lint verify", + "precommit": "run-s lint verify lint-staged", "verify": "yarn workspaces run verify", + "lint-staged": "lint-staged", "version": "lerna version" }, "commitlint": { @@ -46,6 +47,8 @@ ] }, "devDependencies": { + "@commitlint/cli": "^17.5.1", + "@commitlint/config-conventional": "^17.4.4", "@rarible/eslint-config-ts": "~0.10.0-alpha.10", "@rarible/prettier": "^0.10.0-alpha.10", "@testing-library/jest-dom": "^5.16.5", @@ -53,11 +56,8 @@ "@types/jest": "^29.5.0", "@types/react": "^16.9.37", "@types/react-dom": "^16.9.8", - "@commitlint/cli": "^17.5.1", - "@commitlint/config-conventional": "^17.4.4", "@types/react-virtualized": "9.21.10", "eslint": "^8.47.0", - "npm-run-all": "^4.1.5", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "husky": "^8.0.3", @@ -66,6 +66,7 @@ "joi": "^17.9.1", "lerna": "^6.6.1", "lint-staged": "^10.4.0", + "npm-run-all": "^4.1.5", "prettier": "^2.4.1", "react": "^16.13.1", "react-dom": "16.13.1",