|
35 | 35 | "build:playground": "pnpm --filter docs-kit-playground run build", |
36 | 36 | "dev": "pnpm --filter docs-kit-playground run dev", |
37 | 37 | "lint": "eslint .", |
| 38 | + "lint:circular": "dpdm \"{src,site}/**/*.{ts,tsx}\" --warning false --tree false --exit-code circular:1 -T true", |
38 | 39 | "lint:fix": "eslint . --fix", |
| 40 | + "lint:md": "remark . --quiet --frail --output", |
| 41 | + "lint:style": "stylelint \"{src,site,playground}/**/*.{ts,tsx}\" --fix", |
39 | 42 | "prepare": "husky", |
| 43 | + "prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"", |
40 | 44 | "release": "semantic-release", |
41 | 45 | "test": "vitest run", |
42 | 46 | "test:coverage": "vitest run --coverage", |
43 | 47 | "test:watch": "vitest", |
44 | 48 | "type-check": "tsrs --noEmit" |
45 | 49 | }, |
| 50 | + "lint-staged": { |
| 51 | + "*.{md,mdx}": [ |
| 52 | + "prettier --write --no-error-on-unmatched-pattern" |
| 53 | + ], |
| 54 | + "*.json": [ |
| 55 | + "prettier --write --no-error-on-unmatched-pattern" |
| 56 | + ], |
| 57 | + "*.{js,jsx}": [ |
| 58 | + "prettier --write", |
| 59 | + "stylelint --fix", |
| 60 | + "eslint --fix" |
| 61 | + ], |
| 62 | + "*.{mjs,cjs}": [ |
| 63 | + "prettier --write", |
| 64 | + "eslint --fix" |
| 65 | + ], |
| 66 | + "*.{ts,tsx}": [ |
| 67 | + "prettier --parser=typescript --write", |
| 68 | + "stylelint --fix", |
| 69 | + "eslint --fix" |
| 70 | + ] |
| 71 | + }, |
46 | 72 | "dependencies": { |
47 | 73 | "@giscus/react": "^3.1.0", |
48 | 74 | "@lobehub/ui": "^6.15.2", |
|
82 | 108 | "@types/unist": "^3.0.3", |
83 | 109 | "@vitest/coverage-v8": "^5.1.0", |
84 | 110 | "conventional-changelog-gitmoji-config": "1.5.2", |
| 111 | + "dpdm": "^4.3.0", |
85 | 112 | "eslint": "^10.14.0", |
86 | 113 | "husky": "^9.1.7", |
87 | 114 | "jsdom": "^29.1.1", |
| 115 | + "lint-staged": "^17.6.0", |
88 | 116 | "prettier": "^3.9.10", |
89 | 117 | "react": "^19.3.1", |
90 | 118 | "react-dom": "^19.3.1", |
91 | 119 | "react-router": "8.4.0", |
| 120 | + "remark": "^15.0.1", |
| 121 | + "remark-cli": "^12.0.1", |
92 | 122 | "semantic-release": "^25.0.9", |
| 123 | + "stylelint": "^16.26.1", |
93 | 124 | "tsrs": "0.18.0-ts7.1.0-dev.20260929", |
94 | 125 | "tsx": "^4.23.15", |
95 | 126 | "vite": "8.3.4", |
|
0 commit comments