chore(lint): 升级检查工具链并发布 1.2.1
eslint 10、eslint-plugin-vue 10、stylelint 17、commitlint 21 eslint 配置改为 flat config,去掉自动导入 globals 文件 环境变量改成 VITE_API_BASE 与 VITE_API_URL 函数注释改成多行 JSDoc,去掉行末句号 列表项 id 改为必填,去掉非空断言 新增 useFormDialog 统一表单弹窗流程 菜单表单在小程序端改由 flex 派生滚动区高度 声明 packageManager 为 pnpm@10.34.5
This commit is contained in:
1 parent
e58a00bd59
commit
1bf312c125
105 files changed
+11854
-1229
No files matched your search
+42
-44
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "youlai-app",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
@@ -45,34 +45,26 @@
|
||||
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
||||
"type-check": "vue-tsc --noEmit",
|
||||
"check": "pnpm type-check && pnpm lint:eslint:check && pnpm lint:stylelint:check",
|
||||
"lint:eslint:check": "eslint \"src/**/*.{vue,ts}\"",
|
||||
"lint:eslint": "eslint \"src/**/*.{vue,ts}\" --fix",
|
||||
"lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,css,scss,vue,html,md}\"",
|
||||
"check": "pnpm type-check && pnpm lint:eslint:check && pnpm format:check && pnpm lint:stylelint:check",
|
||||
"lint:eslint:check": "eslint \"src/**/*.{vue,ts}\" vite.config.ts unocss.config.ts pages.config.ts eslint.config.mjs",
|
||||
"lint:eslint": "eslint --cache \"src/**/*.{vue,ts}\" vite.config.ts unocss.config.ts pages.config.ts eslint.config.mjs --fix",
|
||||
"lint:prettier": "prettier --write --no-error-on-unmatched-pattern \"src/**/*.{ts,vue,scss,css,json}\" \"*.{ts,cjs,mjs,json,yaml}\"",
|
||||
"lint:stylelint:check": "stylelint \"**/*.{css,scss,vue,html}\"",
|
||||
"lint:stylelint": "stylelint \"**/*.{css,scss,vue,html}\" --fix",
|
||||
"lint:lint-staged": "lint-staged",
|
||||
"prepare": "husky",
|
||||
"commit": "git-cz"
|
||||
"commit": "git-cz",
|
||||
"format:check": "prettier --check --no-error-on-unmatched-pattern \"src/**/*.{ts,vue,scss,css,json}\" \"*.{ts,cjs,mjs,json,yaml}\""
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,ts}": [
|
||||
"*.{js,mjs,cjs,ts,vue}": [
|
||||
"eslint --fix",
|
||||
"prettier --write"
|
||||
],
|
||||
"*.{cjs,json}": [
|
||||
"prettier --write"
|
||||
],
|
||||
"*.{vue,html}": [
|
||||
"eslint --fix",
|
||||
"prettier --write",
|
||||
"*.{css,scss,vue}": [
|
||||
"stylelint --fix"
|
||||
],
|
||||
"*.{scss,css}": [
|
||||
"stylelint --fix",
|
||||
"prettier --write"
|
||||
],
|
||||
"*.md": [
|
||||
"*.{json,html}": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
@@ -104,48 +96,54 @@
|
||||
"vue": "^3.5.22"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.8.1",
|
||||
"@commitlint/config-conventional": "^19.8.1",
|
||||
"@commitlint/cli": "^21.2.1",
|
||||
"@commitlint/config-conventional": "^21.2.0",
|
||||
"@commitlint/types": "^21.2.0",
|
||||
"@dcloudio/types": "^3.4.24",
|
||||
"@dcloudio/uni-cli-shared": "3.0.0-4020420240722002",
|
||||
"@dcloudio/uni-stacktracey": "3.0.0-4020420240722002",
|
||||
"@dcloudio/vite-plugin-uni": "3.0.0-4020420240722002",
|
||||
"@eslint/js": "^9.37.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.46.0",
|
||||
"@typescript-eslint/parser": "^8.46.0",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@uni-helper/uni-types": "1.0.0-alpha.6",
|
||||
"@uni-helper/vite-plugin-uni-components": "^0.2.3",
|
||||
"@uni-helper/vite-plugin-uni-layouts": "^0.1.11",
|
||||
"@uni-helper/vite-plugin-uni-pages": "^0.3.24",
|
||||
"@vue/eslint-config-prettier": "^10.2.0",
|
||||
"@vue/runtime-core": "^3.5.22",
|
||||
"commitizen": "^4.3.1",
|
||||
"cz-git": "^1.12.0",
|
||||
"eslint": "^9.37.0",
|
||||
"eslint-config-prettier": "^9.1.2",
|
||||
"eslint-plugin-prettier": "^5.5.4",
|
||||
"eslint-plugin-vue": "^9.33.0",
|
||||
"globals": "^15.15.0",
|
||||
"commitizen": "^4.3.2",
|
||||
"cz-git": "^1.13.2",
|
||||
"eslint": "^10.14.0",
|
||||
"eslint-plugin-vue": "^10.12.0",
|
||||
"globals": "^17.13.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^15.5.2",
|
||||
"postcss": "^8.5.6",
|
||||
"postcss-html": "^1.8.0",
|
||||
"lint-staged": "^17.6.0",
|
||||
"postcss": "^8.5.26",
|
||||
"postcss-html": "^2.0.0",
|
||||
"postcss-scss": "^4.0.9",
|
||||
"prettier": "^3.6.2",
|
||||
"prettier": "^3.9.10",
|
||||
"sass": "1.78.0",
|
||||
"stylelint": "^16.25.0",
|
||||
"stylelint-config-html": "^1.1.0",
|
||||
"stylelint-config-recess-order": "^5.1.1",
|
||||
"stylelint-config-recommended": "^14.0.1",
|
||||
"stylelint-config-recommended-scss": "^14.1.0",
|
||||
"stylelint-config-recommended-vue": "^1.6.1",
|
||||
"stylelint-prettier": "^5.0.3",
|
||||
"stylelint": "^17.16.0",
|
||||
"stylelint-config-html": "^2.0.0",
|
||||
"stylelint-config-recess-order": "^7.9.0",
|
||||
"stylelint-config-recommended": "^18.0.0",
|
||||
"stylelint-config-recommended-scss": "^17.0.1",
|
||||
"stylelint-config-recommended-vue": "^2.0.0",
|
||||
"stylelint-order": "^8.1.2",
|
||||
"typescript": "^5.7.0",
|
||||
"typescript-eslint": "^8.46.0",
|
||||
"typescript-eslint": "^8.72.1",
|
||||
"unocss": "^0.62.4",
|
||||
"unocss-preset-weapp": "^0.62.2",
|
||||
"unplugin-auto-import": "^0.18.6",
|
||||
"vite": "^6.3.2",
|
||||
"vue-eslint-parser": "^9.4.3",
|
||||
"vue-eslint-parser": "^10.4.1",
|
||||
"vue-tsc": "^2.2.0"
|
||||
}
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
"core-js",
|
||||
"esbuild",
|
||||
"vue-demi"
|
||||
]
|
||||
},
|
||||
"packageManager": "pnpm@10.34.5"
|
||||
}
|
||||
Reference in new issue
Block a user