mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
commit
ce1293e4a5
@ -7,11 +7,24 @@ import antfu from '@antfu/eslint-config';
|
|||||||
* @see https://github.com/antfu/eslint-config
|
* @see https://github.com/antfu/eslint-config
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default antfu({
|
export default antfu(
|
||||||
|
{
|
||||||
formatters: true,
|
formatters: true,
|
||||||
vue: true,
|
vue: true,
|
||||||
jsx: true,
|
jsx: true,
|
||||||
unocss: true,
|
unocss: true,
|
||||||
|
env: {
|
||||||
|
node: true,
|
||||||
|
},
|
||||||
|
ignores: [
|
||||||
|
'./dist/*',
|
||||||
|
'./.vscode/*',
|
||||||
|
'./.idea/*',
|
||||||
|
'**/androidPrivacy.json',
|
||||||
|
'README.md',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
rules: {
|
rules: {
|
||||||
'style/indent': ['error', 2, { SwitchCase: 2 }],
|
'style/indent': ['error', 2, { SwitchCase: 2 }],
|
||||||
'style/quotes': ['error', 'single'],
|
'style/quotes': ['error', 'single'],
|
||||||
@ -32,14 +45,5 @@ export default antfu({
|
|||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'no-useless-catch': 'off',
|
'no-useless-catch': 'off',
|
||||||
},
|
},
|
||||||
env: {
|
|
||||||
node: true,
|
|
||||||
},
|
},
|
||||||
ignores: [
|
);
|
||||||
'./dist/*',
|
|
||||||
'./.vscode/*',
|
|
||||||
'./.idea/*',
|
|
||||||
'**/androidPrivacy.json',
|
|
||||||
'README.md',
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
61
package.json
61
package.json
@ -13,7 +13,7 @@
|
|||||||
"dev:mp-lark": "uni -p mp-lark",
|
"dev:mp-lark": "uni -p mp-lark",
|
||||||
"dev:mp-qq": "uni -p mp-qq",
|
"dev:mp-qq": "uni -p mp-qq",
|
||||||
"dev:mp-toutiao": "uni -p mp-toutiao",
|
"dev:mp-toutiao": "uni -p mp-toutiao",
|
||||||
"dev:mp-weixin": "pnpm git:hooks && uni -p mp-weixin",
|
"dev:mp-weixin": "pnpm git:hooks && uni -p mp-weixin --devtools",
|
||||||
"dev:quickapp-webview": "uni -p quickapp-webview",
|
"dev:quickapp-webview": "uni -p quickapp-webview",
|
||||||
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
|
"dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei",
|
||||||
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
"dev:quickapp-webview-union": "uni -p quickapp-webview-union",
|
||||||
@ -31,56 +31,57 @@
|
|||||||
"build:quickapp-webview": "uni build -p quickapp-webview",
|
"build:quickapp-webview": "uni build -p quickapp-webview",
|
||||||
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
|
||||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
||||||
"lint:fix": "eslint . --fix --ignore-pattern '*/androidPrivacy.json' --ignore-pattern 'README.md'",
|
"lint:fix": "eslint . --fix",
|
||||||
"git:hooks": "npx simple-git-hooks"
|
"git:hooks": "npx simple-git-hooks"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alova/adapter-uniapp": "^1.2.2",
|
"@alova/adapter-uniapp": "^1.2.2",
|
||||||
"@alova/mock": "^1.5.1",
|
"@alova/mock": "^1.5.2",
|
||||||
"@dcloudio/uni-app": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-app": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-app-plus": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-app-plus": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-components": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-components": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-h5": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-h5": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-i18n": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-i18n": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4020220240624001",
|
||||||
"@multiavatar/multiavatar": "^1.0.7",
|
"@multiavatar/multiavatar": "^1.0.7",
|
||||||
"alova": "^2.21.3",
|
"alova": "^2.21.3",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"pinia": "^2.1.7",
|
"pinia": "^2.1.7",
|
||||||
"vue": "^3.4.29"
|
"vue": "^3.4.30"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^2.21.1",
|
"@antfu/eslint-config": "^2.21.1",
|
||||||
"@dcloudio/types": "^3.4.8",
|
"@dcloudio/types": "^3.4.8",
|
||||||
"@dcloudio/uni-automator": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-automator": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4020220240624001",
|
||||||
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4010920240607001",
|
"@dcloudio/uni-vue-devtools": "3.0.0-alpha-4020220240624001",
|
||||||
|
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4020220240624001",
|
||||||
"@iconify/vue": "^4.1.2",
|
"@iconify/vue": "^4.1.2",
|
||||||
"@types/crypto-js": "^4.2.2",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/lodash-es": "^4.17.12",
|
"@types/lodash-es": "^4.17.12",
|
||||||
"@types/node": "^20.14.2",
|
"@types/node": "^20.14.8",
|
||||||
"@unocss/eslint-plugin": "^0.61.0",
|
"@unocss/eslint-plugin": "^0.61.0",
|
||||||
"@vitejs/plugin-vue": "^5.0.5",
|
"@vitejs/plugin-vue": "^5.0.5",
|
||||||
"@vue/runtime-core": "^3.4.29",
|
"@vue/runtime-core": "^3.4.30",
|
||||||
"eslint": "^9.4.0",
|
"eslint": "^9.5.0",
|
||||||
"eslint-plugin-format": "^0.1.1",
|
"eslint-plugin-format": "^0.1.2",
|
||||||
"globals": "^15.4.0",
|
"globals": "^15.6.0",
|
||||||
"lint-staged": "^15.2.7",
|
"lint-staged": "^15.2.7",
|
||||||
"picocolors": "^1.0.1",
|
"picocolors": "^1.0.1",
|
||||||
"rollup-plugin-visualizer": "^5.12.0",
|
"rollup-plugin-visualizer": "^5.12.0",
|
||||||
"sass": "^1.77.5",
|
"sass": "^1.77.6",
|
||||||
"simple-git-hooks": "^2.11.1",
|
"simple-git-hooks": "^2.11.1",
|
||||||
"tsx": "^4.15.4",
|
"tsx": "^4.15.7",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "^5.5.2",
|
||||||
"uni-mini-router": "^0.1.6",
|
"uni-mini-router": "^0.1.6",
|
||||||
"uni-read-pages-vite": "^0.0.6",
|
"uni-read-pages-vite": "^0.0.6",
|
||||||
"unocss": "^0.61.0",
|
"unocss": "^0.61.0",
|
||||||
@ -95,6 +96,6 @@
|
|||||||
"commit-msg": "npx tsx ./scripts/verify-commit.ts"
|
"commit-msg": "npx tsx ./scripts/verify-commit.ts"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": "eslint --fix --ignore-pattern '*/androidPrivacy.json' --ignore-pattern 'README.md'"
|
"*": "eslint . --fix"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user