Commit eabaee97 by HoMeTown

feat: 提交

parent 4933c6d2
node_modules dist/*
dist node_modules/*
\ No newline at end of file config/*
public/*
scripts/*
package.json
package-lock.json
.gitignore
README.md
.eslintrc
lint-staged.config.mjs
\ No newline at end of file
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm lint
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
"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", "lint": "eslint src --fix --ext .ts,.tsx",
"build": "rsbuild build", "build": "rsbuild build",
"preview": "rsbuild preview" "preview": "rsbuild preview",
"prepare": "husky install"
}, },
"dependencies": { "dependencies": {
"@nutui/nutui-react": "^2.2.0", "@nutui/nutui-react": "^2.2.0",
...@@ -33,12 +34,15 @@ ...@@ -33,12 +34,15 @@
"@typescript-eslint/parser": "^6.13.1", "@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.54.0", "eslint": "^8.54.0",
"eslint-plugin-react": "^7.33.2", "eslint-plugin-react": "^7.33.2",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"postcss-px-to-viewport": "^1.1.1", "postcss-px-to-viewport": "^1.1.1",
"typescript": "^5.3.2" "typescript": "^5.3.2"
}, },
"husky": { "lint-staged": {
"hooks": { "src/**/*.{ts,tsx}":
"pre-commit": "pnpm lint" [
} "eslint --fix"
]
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment