feat: nano-staged
Showing
| ... | @@ -10,7 +10,6 @@ | ... | @@ -10,7 +10,6 @@ |
| "build:dev": "rsbuild build --config rsbuild/build/build.dev.ts", | "build:dev": "rsbuild build --config rsbuild/build/build.dev.ts", | ||
| "build:prod": "rsbuild build --config rsbuild/build/build.prod.ts", | "build:prod": "rsbuild build --config rsbuild/build/build.prod.ts", | ||
| "deploy:test": "pnpm build:test && sh ./scripts/deploy.test.sh", | "deploy:test": "pnpm build:test && sh ./scripts/deploy.test.sh", | ||
| "lint": "eslint src --fix --ext .ts,.tsx", | |||
| "build": "rsbuild build", | "build": "rsbuild build", | ||
| "preview": "rsbuild preview", | "preview": "rsbuild preview", | ||
| "prepare": "husky install" | "prepare": "husky install" | ||
| ... | @@ -35,14 +34,11 @@ | ... | @@ -35,14 +34,11 @@ |
| "eslint": "^8.54.0", | "eslint": "^8.54.0", | ||
| "eslint-plugin-react": "^7.33.2", | "eslint-plugin-react": "^7.33.2", | ||
| "husky": "^8.0.3", | "husky": "^8.0.3", | ||
| "lint-staged": "^15.1.0", | "nano-staged": "^0.8.0", | ||
| "postcss-px-to-viewport": "^1.1.1", | "postcss-px-to-viewport": "^1.1.1", | ||
| "typescript": "^5.3.2" | "typescript": "^5.3.2" | ||
| }, | }, | ||
| "lint-staged": { | "nano-staged": { | ||
| "src/**/*.{ts,tsx}": | "*.{ts,tsx}": "eslint --fix" | ||
| [ | |||
| "eslint --fix" | |||
| ] | |||
| } | } | ||
| } | } |
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment