- web/ → frontend/ 目录重命名(Wails v3 标准结构) - main.go: Middleware 修复 custom.js 404 + DevTools 延迟启动 - Sidebar: 收藏夹内部独立滚动 + 帮助区块固定底部 - useFavorites.ts: longPressTimer const→let 修复 TypeError - App.vue: Arco Tabs padding-top 覆盖 - build: config.yml / Taskfile.yml 对齐官方模板,devtools build tag - 新增 v3 bindings、vite.config.js、跨平台构建配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
36 lines
728 B
JavaScript
36 lines
728 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
'plugin:vue/vue3-recommended',
|
|
'plugin:@typescript-eslint/recommended'
|
|
],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module'
|
|
},
|
|
plugins: [
|
|
'vue',
|
|
'@typescript-eslint'
|
|
],
|
|
rules: {
|
|
// 发现未使用的变量
|
|
'no-unused-vars': 'error',
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
|
|
// 禁止变量在声明前使用
|
|
'no-use-before-define': 'error',
|
|
|
|
// Vue 规则
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-unused-vars': 'error'
|
|
}
|
|
}
|