feat:代码规范的调整(else、catch、finally 等不换行)

feat:调整 mp 的 WX_APPID
This commit is contained in:
YunaiV
2025-12-12 19:17:50 +08:00
parent bf525204be
commit 94e97086ea
2 changed files with 7 additions and 1 deletions

2
env/.env vendored
View File

@@ -2,7 +2,7 @@ VITE_APP_TITLE = '芋道管理系统'
VITE_APP_PORT = 9000 VITE_APP_PORT = 9000
VITE_UNI_APPID = '__UNI__D1E5001' VITE_UNI_APPID = '__UNI__D1E5001'
VITE_WX_APPID = 'wxa2abb91f64032a2b' VITE_WX_APPID = 'wx63c280fe3248a3e7'
# h5部署网站的base配置到 manifest.config.ts 里的 h5.router.base # h5部署网站的base配置到 manifest.config.ts 里的 h5.router.base
# https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router # https://uniapp.dcloud.net.cn/collocation/manifest.html#h5-router

View File

@@ -32,6 +32,7 @@ export default uniHelper({
'jsdoc/require-returns-description': 'off', 'jsdoc/require-returns-description': 'off',
'ts/no-empty-object-type': 'off', 'ts/no-empty-object-type': 'off',
'no-extend-native': 'off', 'no-extend-native': 'off',
'style/brace-style': 'off', // 参考 https://github.com/antfu/eslint-config/issues/322 帖子:关闭此规则,使用下面的 brace-style 规则
'vue/singleline-html-element-content-newline': [ 'vue/singleline-html-element-content-newline': [
'error', 'error',
{ {
@@ -39,9 +40,14 @@ export default uniHelper({
}, },
], ],
// vue SFC 调换顺序改这里 // vue SFC 调换顺序改这里
// 解释 by 芋艿:为什么 script 开始放在 template 前面https://yb.tencent.com/s/1fYYlgBopLAT
'vue/block-order': ['error', { 'vue/block-order': ['error', {
order: [['script', 'template'], 'style'], order: [['script', 'template'], 'style'],
}], }],
// add by 芋艿else、catch、} 等不换行https://zh-hans.eslint.org/docs/latest/rules/brace-style
'brace-style': ['error', '1tbs', {
allowSingleLine: true,
}],
}, },
formatters: { formatters: {
/** /**