feat: 提交
Showing
.husky/pre-commit
0 → 100755
| ... | ... | @@ -12,7 +12,8 @@ |
| "deploy:test": "pnpm build:test && sh ./scripts/deploy.test.sh", | ||
| "lint": "eslint src --fix --ext .ts,.tsx", | ||
| "build": "rsbuild build", | ||
| "preview": "rsbuild preview" | ||
| "preview": "rsbuild preview", | ||
| "prepare": "husky install" | ||
| }, | ||
| "dependencies": { | ||
| "@nutui/nutui-react": "^2.2.0", | ||
| ... | ... | @@ -33,12 +34,15 @@ |
| "@typescript-eslint/parser": "^6.13.1", | ||
| "eslint": "^8.54.0", | ||
| "eslint-plugin-react": "^7.33.2", | ||
| "husky": "^8.0.3", | ||
| "lint-staged": "^15.1.0", | ||
| "postcss-px-to-viewport": "^1.1.1", | ||
| "typescript": "^5.3.2" | ||
| }, | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "pnpm lint" | ||
| } | ||
| "lint-staged": { | ||
| "src/**/*.{ts,tsx}": | ||
| [ | ||
| "eslint --fix" | ||
| ] | ||
| } | ||
| } |
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment