|
17 | 17 | "url": "git+https://github.com/sinoui/ts-lib-scripts.git" |
18 | 18 | }, |
19 | 19 | "devDependencies": { |
20 | | - "cross-env": "^5.2.0", |
21 | | - "husky": "^4.2.5", |
| 20 | + "cross-env": "^7.0.3", |
| 21 | + "husky": "^7.0.2", |
22 | 22 | "lerna": "^3.16.4", |
23 | | - "lint-staged": "^8.1.7", |
| 23 | + "lint-staged": "^11.1.2", |
24 | 24 | "typescript": "^4.4.2", |
25 | 25 | "typescript-plugin-css-modules": "^3.4.0" |
26 | 26 | }, |
|
31 | 31 | "no-console": "off" |
32 | 32 | } |
33 | 33 | }, |
34 | | - "prettier": { |
35 | | - "printWidth": 80, |
36 | | - "useTabs": false, |
37 | | - "tabWidth": 2, |
38 | | - "semi": true, |
39 | | - "singleQuote": true, |
40 | | - "trailingComma": "all", |
41 | | - "bracketSpacing": true, |
42 | | - "jsxBracketSameLine": false, |
43 | | - "arrowParens": "always" |
44 | | - }, |
45 | 34 | "scripts": { |
46 | 35 | "lint": "ts-lib-tools lint", |
47 | 36 | "format": "ts-lib-tools lint --fix", |
|
50 | 39 | "build": "tsc --build packages/tsconfig.json", |
51 | 40 | "clean": "yarn build --clean", |
52 | 41 | "postinstall": "yarn-deduplicate yarn.lock && yarn build", |
53 | | - "prepublishOnly": "yarn clean && yarn build" |
54 | | - }, |
55 | | - "husky": { |
56 | | - "hooks": { |
57 | | - "pre-commit": "lint-staged" |
58 | | - } |
59 | | - }, |
60 | | - "lint-staged": { |
61 | | - "linters": { |
62 | | - "packages/**/*.{ts,tsx}": [ |
63 | | - "cross-env CI=true ts-lib-tools test", |
64 | | - "eslint --fix --color", |
65 | | - "git add" |
66 | | - ] |
67 | | - }, |
68 | | - "ignore": [ |
69 | | - "**/assets/**" |
70 | | - ] |
| 42 | + "prepublishOnly": "yarn clean && yarn build", |
| 43 | + "prepare": "husky install" |
71 | 44 | }, |
72 | 45 | "resolutions": { |
73 | 46 | "serialize-javascript": "^2.1.1" |
|
0 commit comments