Skip to content

Commit 57b474c

Browse files
committed
feat: update
1 parent bdbf15b commit 57b474c

File tree

3 files changed

+3
-39
lines changed

3 files changed

+3
-39
lines changed

.commitlintrc.js

-31
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ GitHub 项目地址:[React-Mobile-Template](https://github.com/huangmingfu/rea
8282
1. 目前有一些ui库还未支持React19,本项目使用的是18.3.1版本,谨慎升级react版本。
8383
2. postcss-pxtorem插件不支持内联样式,所以 `utils` 里面配备了 `px2rem` 函数解决。示例:`<div style={{ width: px2rem(100) }}>test</div>`
8484
3. 以下场景pxtorem插件不会转换rem:
85-
(1).在main.ts里引入样式,如 `import '@/styles/scss/global.scss';`,建议引入不涉及px的样式,如reset.css
85+
(1).在main.ts里引入样式,如 `import '@/styles/scss/global.scss';`,建议引入不涉及px的样式,如reset.css

package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
"preinstall": "npx only-allow pnpm",
4343
"postinstall": "npx simple-git-hooks",
4444
"clean": "rm -rf node_modules dist dist-*",
45-
"deps:check": "pnpm outdated -r",
46-
"deps:update": "pnpm update --latest"
45+
"deps:check": "pnpm outdated -r"
4746
},
4847
"dependencies": {
4948
"ahooks": "^3.8.4",
@@ -60,8 +59,6 @@
6059
},
6160
"devDependencies": {
6261
"@antfu/eslint-config": "^3.12.1",
63-
"@commitlint/cli": "^19.6.1",
64-
"@commitlint/config-conventional": "^19.6.0",
6562
"@eslint-react/eslint-plugin": "^1.22.1",
6663
"@react-dev-inspector/vite-plugin": "^2.0.1",
6764
"@types/node": "^22.10.2",
@@ -83,9 +80,7 @@
8380
"vite-plugin-checker": "^0.8.0"
8481
},
8582
"simple-git-hooks": {
86-
"pre-commit": "npx lint-staged",
87-
"commit-msg": "npx --no -- commitlint --edit $1",
88-
"preserveUnused": ["commit-msg"]
83+
"pre-commit": "npx lint-staged"
8984
},
9085
"lint-staged": {
9186
"*": "eslint --fix"

0 commit comments

Comments
 (0)