|
20 | 20 | "i18n-remove": "pro i18n-remove --locale=zh-CN --write",
|
21 | 21 | "lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
|
22 | 22 | "lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
|
23 |
| - "lint-staged": "lint-staged", |
| 23 | + "precommit": "lint-staged", |
24 | 24 | "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
|
25 | 25 | "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
|
26 | 26 | "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
|
|
40 | 40 | "test:component": "umi test ./src/components",
|
41 | 41 | "tsc": "tsc"
|
42 | 42 | },
|
43 |
| - "husky": { |
44 |
| - "hooks": { |
45 |
| - "pre-commit": "npm run lint-staged" |
46 |
| - } |
47 |
| - }, |
48 | 43 | "lint-staged": {
|
49 | 44 | "**/*.less": "stylelint --syntax less",
|
50 | 45 | "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
|
|
91 | 86 | "@umijs/preset-ant-design-pro": "^1.2.0",
|
92 | 87 | "@umijs/preset-react": "^1.4.8",
|
93 | 88 | "@umijs/preset-ui": "^2.0.9",
|
| 89 | + "@umijs/yorkie": "^2.0.3", |
94 | 90 | "carlo": "^0.9.46",
|
95 | 91 | "chalk": "^4.0.0",
|
96 | 92 | "cross-env": "^7.0.0",
|
|
100 | 96 | "eslint": "^7.1.0",
|
101 | 97 | "express": "^4.17.1",
|
102 | 98 | "gh-pages": "^3.0.0",
|
103 |
| - "husky": "^4.0.7", |
104 | 99 | "jsdom-global": "^3.0.2",
|
105 | 100 | "lint-staged": "^10.0.0",
|
106 | 101 | "mockjs": "^1.0.1-beta3",
|
|
0 commit comments