|
34 | 34 | "now-build": "npm run build",
|
35 | 35 | "prepublishOnly": "npm run lint && npm run test && npm run compile && rc-np",
|
36 | 36 | "start": "dumi dev",
|
37 |
| - "test": "rc-test" |
| 37 | + "test": "rc-test", |
| 38 | + "prepare": "husky && dumi setup" |
38 | 39 | },
|
39 | 40 | "dependencies": {
|
40 | 41 | "@rc-component/resize-observer": "^1.0.0",
|
|
45 | 46 | "@rc-component/menu": "~1.0.0"
|
46 | 47 | },
|
47 | 48 | "devDependencies": {
|
| 49 | + "@typescript-eslint/eslint-plugin": "^5.59.7", |
| 50 | + "@typescript-eslint/parser": "^5.59.7", |
48 | 51 | "@rc-component/father-plugin": "^2.0.0",
|
49 | 52 | "@rc-component/np": "^1.0.3",
|
50 | 53 | "@rc-component/trigger": "^3.0.0",
|
|
54 | 57 | "@types/classnames": "^2.2.10",
|
55 | 58 | "@types/enzyme": "^3.10.5",
|
56 | 59 | "@types/jest": "^29.4.0",
|
57 |
| - "@types/keyv": "4.2.0", |
58 | 60 | "@types/react": "^18.2.42",
|
59 | 61 | "@types/react-dom": "^18.0.11",
|
60 | 62 | "@umijs/fabric": "^4.0.1",
|
61 |
| - "coveralls": "^3.0.6", |
62 | 63 | "cross-env": "^7.0.2",
|
63 | 64 | "dumi": "^2.0.0",
|
64 | 65 | "eslint": "^8.54.0",
|
65 | 66 | "eslint-plugin-jest": "^28.9.0",
|
66 | 67 | "eslint-plugin-unicorn": "^56.0.1",
|
67 |
| - "fastclick": "~1.0.6", |
68 | 68 | "father": "^4.0.0",
|
69 | 69 | "gh-pages": "^6.1.0",
|
70 |
| - "history": "^5.3.0", |
71 |
| - "immutability-helper": "^3.0.1", |
| 70 | + "husky": "^9.1.7", |
72 | 71 | "less": "^4.1.3",
|
73 |
| - "preact-compat": "^3.16.0", |
| 72 | + "lint-staged": "^15.5.0", |
| 73 | + "prettier": "^3.5.3", |
74 | 74 | "rc-test": "^7.0.14",
|
75 | 75 | "react": "^18.0.0",
|
76 | 76 | "react-dnd": "^10.0.0",
|
77 | 77 | "react-dnd-html5-backend": "^10.0.0",
|
78 | 78 | "react-dom": "^18.0.0",
|
79 | 79 | "react-sticky": "^6.0.3",
|
80 |
| - "sortablejs": "^1.7.0", |
81 | 80 | "typescript": "^5.3.2"
|
82 | 81 | },
|
83 | 82 | "peerDependencies": {
|
84 | 83 | "react": ">=16.9.0",
|
85 | 84 | "react-dom": ">=16.9.0"
|
86 | 85 | },
|
| 86 | + "lint-staged": { |
| 87 | + "*": "prettier --write --ignore-unknown" |
| 88 | + }, |
87 | 89 | "engines": {
|
88 | 90 | "node": ">=8.x"
|
89 | 91 | }
|
|
0 commit comments