|
21 | 21 | "integrity2": "node buildutils/lib/integrity.js",
|
22 | 22 | "lint": "yarn && yarn run prettier && yarn run eslint",
|
23 | 23 | "lint:check": "yarn run prettier:check && yarn run eslint:check",
|
24 |
| - "prettier": "prettier --ignore-path .gitignore --write '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}'", |
25 |
| - "prettier:check": "prettier --ignore-path .gitignore --check '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}'", |
| 24 | + "prettier": "prettier --ignore-path .gitignore --write '**/*{.ts,.tsx,.js,.jsx,.css,.json}'", |
| 25 | + "prettier:check": "prettier --ignore-path .gitignore --check '**/*{.ts,.tsx,.js,.jsx,.css,.json}'", |
26 | 26 | "sort-package-json": "lerna exec --parallel sort-package-json && sort-package-json",
|
27 | 27 | "publish": "yarn run clean && yarn run build && lerna publish -m \"Publish npm packages\"",
|
28 | 28 | "update-dependency": "update-dependency --lerna",
|
|
33 | 33 | "@typescript-eslint/eslint-plugin": "^2.14.0",
|
34 | 34 | "@typescript-eslint/parser": "^2.14.0",
|
35 | 35 | "eslint": "^6.5.0",
|
36 |
| - "eslint-plugin-prettier": "^3.1.2", |
| 36 | + "eslint-config-prettier": "^6.9.0", |
| 37 | + "husky": "^2.3.0", |
37 | 38 | "lerna": "^3.20.2",
|
| 39 | + "lint-staged": "^9.5.0", |
38 | 40 | "prettier": "^1.19.1",
|
39 | 41 | "sort-package-json": "~1.35"
|
| 42 | + }, |
| 43 | + "husky": { |
| 44 | + "hooks": { |
| 45 | + "pre-commit": "lint-staged", |
| 46 | + "pre-push": "yarn run integrity" |
| 47 | + } |
40 | 48 | }
|
41 | 49 | }
|
0 commit comments