chore: update
正在显示
差异被折叠。
| ... | ... | @@ -9,14 +9,7 @@ |
| "build:dev": "vite build --mode development", | ||
| "build:ali": "vite build --mode ali", | ||
| "preview": "vite preview", | ||
| "prepare": "husky install", | ||
| "lint": "npm run lint:js && npm run lint:prettier", | ||
| "lint-staged": "lint-staged", | ||
| "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx", | ||
| "lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src", | ||
| "lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src", | ||
| "lint:prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --end-of-line auto", | ||
| "prettier": "prettier -c --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"" | ||
| "lint": "eslint --ext .js,.jsx,.ts,.tsx --fix --ignore-path .gitignore ./src" | ||
| }, | ||
| "dependencies": { | ||
| "@ant-design/icons": "^5.3.7", | ||
| ... | ... | @@ -53,10 +46,7 @@ |
| "eslint": "^8.57.0", | ||
| "eslint-plugin-react": "^7.34.2", | ||
| "eslint-plugin-react-hooks": "^4.6.2", | ||
| "husky": "^8.0.3", | ||
| "less": "^4.2.0", | ||
| "lint-staged": "^15.1.0", | ||
| "prettier": "^3.3.1", | ||
| "vite": "^5.3.0", | ||
| "vite-plugin-mkcert": "^1.17.5" | ||
| }, | ||
| ... | ... | @@ -64,16 +54,5 @@ |
| "> 1%", | ||
| "last 2 versions", | ||
| "not ie <= 10" | ||
| ], | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "lint-staged" | ||
| } | ||
| }, | ||
| "lint-staged": { | ||
| "**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js", | ||
| "**/*.{js,jsx,tsx,ts,less,md,json}": [ | ||
| "prettier --write" | ||
| ] | ||
| } | ||
| } |
请
注册
或者
登录
后发表评论