From beadf2090cf58dc30f2911e94217c8d333bfe9e0 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 06 Jan 2026 18:53:17 +0800
Subject: [PATCH] feat: 开启严格模式
---
uniapps/work-app/package.json | 304 +++++++++++++++++++++++++-------------------------
1 files changed, 150 insertions(+), 154 deletions(-)
diff --git a/uniapps/work-app/package.json b/uniapps/work-app/package.json
index 89636a9..da182e6 100644
--- a/uniapps/work-app/package.json
+++ b/uniapps/work-app/package.json
@@ -1,156 +1,152 @@
{
- "name": "work-app",
- "type": "module",
- "version": "1.5.0",
- "description": "掌控智飞",
- "author": {
- "name": "ztzf"
- },
- "license": "MIT",
- "homepage": "https://github.com/oyjt/uniapp-vue3-template",
- "repository": {
- "type": "git",
- "url": "https://github.com/oyjt/uniapp-vue3-template.git"
- },
- "keywords": [],
- "scripts": {
- "preinstall": "npx only-allow pnpm",
- "uvm": "npx @dcloudio/uvm@latest",
- "uvm-rm": "node ./scripts/post-upgrade.js",
- "dev:h5": "uni",
- "dev:h5:ssr": "uni --ssr",
- "dev:h5-test": "uni --mode test",
- "dev:h5-pro": "uni --mode production",
- "dev:mp-weixin": "uni -p mp-weixin",
- "dev:mp-weixin-test": "uni -p mp-weixin --mode test",
- "dev:mp-weixin-prod": "uni -p mp-weixin --mode production",
- "dev:app": "uni -p app",
- "dev:app-android": "uni -p app-android",
- "dev:app-ios": "uni -p app-ios",
- "build:h5": "uni build",
- "build:h5:ssr": "uni build --ssr",
- "build:h5-test": "uni build --mode test",
- "build:h5-prod": "uni build --mode production",
- "build:mp-weixin": "uni build -p mp-weixin",
- "build:mp-weixin-test": "uni build -p mp-weixin --mode test",
- "build:mp-weixin-prod": "uni build -p mp-weixin --mode production",
- "build:app": "uni build -p app",
- "build:app-android": "uni build -p app-android",
- "build:app-ios": "uni build -p app-ios",
- "eslint": "eslint \"src/**/*.{js,jsx,ts,tsx,vue}\"",
- "eslint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx,vue}\" --fix",
- "stylelint": "stylelint \"src/**/*.{vue,scss,css,sass,less}\"",
- "stylelint:fix": "stylelint \"src/**/*.{vue,scss,css,sass,less}\" --fix",
- "cz": "git add . && npx czg",
- "clean": "npx rimraf node_modules",
- "clean:cache": "npx rimraf node_modules/.cache"
- },
- "dependencies": {
- "@dcloudio/uni-app": "3.0.0-4070520250711001",
- "@dcloudio/uni-app-harmony": "3.0.0-4070520250711001",
- "@dcloudio/uni-app-plus": "3.0.0-4070520250711001",
- "@dcloudio/uni-components": "3.0.0-4070520250711001",
- "@dcloudio/uni-h5": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-alipay": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-baidu": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-harmony": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-jd": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-kuaishou": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-lark": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-qq": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-toutiao": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-weixin": "3.0.0-4070520250711001",
- "@dcloudio/uni-mp-xhs": "3.0.0-4070520250711001",
- "@dcloudio/uni-quickapp-webview": "3.0.0-4070520250711001",
- "@dcloudio/uni-ui": "^1.5.11",
- "dayjs": "^1.11.18",
- "js-audio-recorder": "^1.0.7",
- "js-base64": "^3.7.4",
- "js-md5": "^0.7.3",
- "leaflet": "^1.9.4",
- "deep-pick-omit": "1.2.1",
- "destr": "2.0.5",
- "pinia": "2.2.4",
- "pinia-plugin-persistedstate": "4.1.3",
- "trtc-sdk-v5": "^5.14.1",
- "uview-plus": "^3.5.41",
- "vue": "3.4.21",
- "vue-i18n": "9.1.9",
- "z-paging": "^2.8.8"
- },
- "devDependencies": {
- "@antfu/eslint-config": "5.0.0",
- "@dcloudio/uni-automator": "3.0.0-4070520250711001",
- "@dcloudio/uni-cli-shared": "3.0.0-4070520250711001",
- "@dcloudio/uni-stacktracey": "3.0.0-4070520250711001",
- "@dcloudio/vite-plugin-uni": "3.0.0-4070520250711001",
- "@esbuild/darwin-arm64": "0.25.1",
- "@esbuild/darwin-x64": "0.25.1",
- "@iconify-json/mdi": "^1.2.3",
- "@rollup/rollup-darwin-arm64": "4.38.0",
- "@rollup/rollup-darwin-x64": "4.38.0",
- "@unocss/eslint-plugin": "^66.3.3",
- "@unocss/preset-icons": "^66.3.3",
- "@vue/runtime-core": "^3.4.21",
- "czg": "^1.12.0",
- "eslint": "^9.32.0",
- "lint-staged": "^16.1.6",
- "miniprogram-api-typings": "^4.1.0",
- "picocolors": "^1.1.1",
- "rimraf": "^6.0.1",
- "rollup-plugin-visualizer": "^6.0.3",
- "sass": "1.79.6",
- "sass-loader": "^16.0.4",
- "stylelint": "^16.23.0",
- "stylelint-config-recess-order": "^6.1.0",
- "stylelint-config-standard": "^39.0.0",
- "stylelint-config-standard-vue": "^1.0.0",
- "unocss": "65.5.0",
- "unocss-preset-weapp": "^66.0.2",
- "unplugin-auto-import": "19.3.0",
- "unplugin-vue-components": "^28.8.0",
- "vite": "5.2.8",
- "vite-plugin-clean-build": "^1.4.1",
- "vite-plugin-replace-image-url": "^1.4.1",
- "vite-plugin-restart": "^1.0.0",
- "vite-plugin-vue-mcp": "^0.3.2"
- },
- "pnpm": {
- "overrides": {
- "vue": "3.4.21"
- }
- },
- "lint-staged": {
- "src/**/*.{js,jsx}": "eslint --fix",
- "*.{scss,css,style,html}": "stylelint --fix",
- "*.vue": [
- "eslint --fix",
- "stylelint --fix"
- ]
- },
- "uni-app": {
- "scripts": {
- "h5-dev": {
- "title": "H5 开发环境",
- "env": {
- "UNI_PLATFORM": "h5",
- "ENV_NAME": "development"
- }
- },
- "h5-test": {
- "title": "H5 测试环境",
- "env": {
- "UNI_PLATFORM": "h5",
- "ENV_NAME": "test"
- }
- },
- "h5-prod": {
- "title": "H5 生产环境",
- "env": {
- "UNI_PLATFORM": "h5",
- "ENV_NAME": "production"
- }
- }
- }
- }
+ "name": "work-app",
+ "type": "module",
+ "version": "1.5.0",
+ "description": "掌控智飞",
+ "private": true,
+ "author": {
+ "name": "ztzf"
+ },
+ "license": "MIT",
+ "homepage": "https://github.com/oyjt/uniapp-vue3-template",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/oyjt/uniapp-vue3-template.git"
+ },
+ "keywords": [],
+ "scripts": {
+ "preinstall": "npx only-allow pnpm",
+ "uvm": "npx @dcloudio/uvm@latest",
+ "uvm-rm": "node ./scripts/post-upgrade.js",
+ "dev:h5": "uni",
+ "dev:h5:ssr": "uni --ssr",
+ "dev:h5-test": "uni --mode test",
+ "dev:h5-pro": "uni --mode production",
+ "dev:mp-weixin": "uni -p mp-weixin",
+ "dev:mp-weixin-test": "uni -p mp-weixin --mode test",
+ "dev:mp-weixin-prod": "uni -p mp-weixin --mode production",
+ "dev:app": "uni -p app",
+ "dev:app-android": "uni -p app-android",
+ "dev:app-ios": "uni -p app-ios",
+ "build:h5": "uni build",
+ "build:h5:ssr": "uni build --ssr",
+ "build:h5-test": "uni build --mode test",
+ "build:h5-prod": "uni build --mode production",
+ "build:mp-weixin": "uni build -p mp-weixin",
+ "build:mp-weixin-test": "uni build -p mp-weixin --mode test",
+ "build:mp-weixin-prod": "uni build -p mp-weixin --mode production",
+ "build:app": "uni build -p app",
+ "build:app-android": "uni build -p app-android",
+ "build:app-ios": "uni build -p app-ios",
+ "eslint": "eslint \"src/**/*.{js,jsx,ts,tsx,vue}\"",
+ "eslint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx,vue}\" --fix",
+ "stylelint": "stylelint \"src/**/*.{vue,scss,css,sass,less}\"",
+ "stylelint:fix": "stylelint \"src/**/*.{vue,scss,css,sass,less}\" --fix",
+ "cz": "git add . && npx czg",
+ "clean": "npx rimraf node_modules",
+ "clean:cache": "npx rimraf node_modules/.cache"
+ },
+ "dependencies": {
+ "@dcloudio/uni-app": "3.0.0-4070520250711001",
+ "@dcloudio/uni-app-harmony": "3.0.0-4070520250711001",
+ "@dcloudio/uni-app-plus": "3.0.0-4070520250711001",
+ "@dcloudio/uni-components": "3.0.0-4070520250711001",
+ "@dcloudio/uni-h5": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-alipay": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-baidu": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-harmony": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-jd": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-kuaishou": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-lark": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-qq": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-toutiao": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-weixin": "3.0.0-4070520250711001",
+ "@dcloudio/uni-mp-xhs": "3.0.0-4070520250711001",
+ "@dcloudio/uni-quickapp-webview": "3.0.0-4070520250711001",
+ "@dcloudio/uni-ui": "^1.5.11",
+ "dayjs": "^1.11.18",
+ "js-audio-recorder": "^1.0.7",
+ "js-base64": "^3.7.4",
+ "js-md5": "^0.7.3",
+ "leaflet": "^1.9.4",
+ "deep-pick-omit": "1.2.1",
+ "destr": "2.0.5",
+ "pinia": "2.2.4",
+ "pinia-plugin-persistedstate": "4.1.3",
+ "trtc-sdk-v5": "^5.14.1",
+ "uview-plus": "^3.5.41",
+ "vue": "3.4.21",
+ "vue-i18n": "9.1.9",
+ "z-paging": "^2.8.8"
+ },
+ "devDependencies": {
+ "@antfu/eslint-config": "5.0.0",
+ "@dcloudio/uni-automator": "3.0.0-4070520250711001",
+ "@dcloudio/uni-cli-shared": "3.0.0-4070520250711001",
+ "@dcloudio/uni-stacktracey": "3.0.0-4070520250711001",
+ "@dcloudio/vite-plugin-uni": "3.0.0-4070520250711001",
+ "@esbuild/darwin-arm64": "0.25.1",
+ "@esbuild/darwin-x64": "0.25.1",
+ "@iconify-json/mdi": "^1.2.3",
+ "@rollup/rollup-darwin-arm64": "4.38.0",
+ "@rollup/rollup-darwin-x64": "4.38.0",
+ "@unocss/eslint-plugin": "^66.3.3",
+ "@unocss/preset-icons": "^66.3.3",
+ "@vue/runtime-core": "^3.4.21",
+ "czg": "^1.12.0",
+ "eslint": "^9.32.0",
+ "lint-staged": "^16.1.6",
+ "miniprogram-api-typings": "^4.1.0",
+ "picocolors": "^1.1.1",
+ "rimraf": "^6.0.1",
+ "rollup-plugin-visualizer": "^6.0.3",
+ "sass": "1.79.6",
+ "sass-loader": "^16.0.4",
+ "stylelint": "^16.23.0",
+ "stylelint-config-recess-order": "^6.1.0",
+ "stylelint-config-standard": "^39.0.0",
+ "stylelint-config-standard-vue": "^1.0.0",
+ "unocss": "65.5.0",
+ "unocss-preset-weapp": "^66.0.2",
+ "unplugin-auto-import": "19.3.0",
+ "unplugin-vue-components": "^28.8.0",
+ "vite": "5.2.8",
+ "vite-plugin-clean-build": "^1.4.1",
+ "vite-plugin-replace-image-url": "^1.4.1",
+ "vite-plugin-restart": "^1.0.0",
+ "vite-plugin-vue-mcp": "^0.3.2"
+ },
+ "lint-staged": {
+ "src/**/*.{js,jsx}": "eslint --fix",
+ "*.{scss,css,style,html}": "stylelint --fix",
+ "*.vue": [
+ "eslint --fix",
+ "stylelint --fix"
+ ]
+ },
+ "uni-app": {
+ "scripts": {
+ "h5-dev": {
+ "title": "H5 开发环境",
+ "env": {
+ "UNI_PLATFORM": "h5",
+ "ENV_NAME": "development"
+ }
+ },
+ "h5-test": {
+ "title": "H5 测试环境",
+ "env": {
+ "UNI_PLATFORM": "h5",
+ "ENV_NAME": "test"
+ }
+ },
+ "h5-prod": {
+ "title": "H5 生产环境",
+ "env": {
+ "UNI_PLATFORM": "h5",
+ "ENV_NAME": "production"
+ }
+ }
+ }
+ }
}
--
Gitblit v1.9.3