- 移除过时代码,迁移 ESLint 到 v9 新配置格式 - 修复已废弃的 overflow: overlay CSS 属性 - 新增 LZMA 压缩选项,提升压缩率 - 更新弹窗布局:两列显示,适配小窗口 - 优化更新功能:用户可选择便携版或安装版 - 调整界面间距与样式,提升视觉效果
53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
import js from '@eslint/js'
|
|
import html from 'eslint-plugin-html'
|
|
import globals from 'globals'
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
files: ['ui/**/*.{js,html}'],
|
|
plugins: {
|
|
html,
|
|
},
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: {
|
|
...globals.browser,
|
|
invoke: 'readonly',
|
|
open: 'readonly',
|
|
save: 'readonly',
|
|
getCurrentWindow: 'readonly',
|
|
listen: 'readonly',
|
|
},
|
|
},
|
|
rules: {
|
|
indent: ['error', 4],
|
|
quotes: ['error', 'single', { avoidEscape: true }],
|
|
semi: ['error', 'never'],
|
|
'no-unused-vars': [
|
|
'warn',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^currentUpdateInfo_$',
|
|
},
|
|
],
|
|
'no-constant-condition': ['warn', { checkLoops: false }],
|
|
'no-console': 'off',
|
|
},
|
|
},
|
|
{
|
|
ignores: [
|
|
'node_modules/**',
|
|
'src-tauri/**',
|
|
'upx/**',
|
|
'icons/**',
|
|
'img/**',
|
|
'*.min.js',
|
|
'*.min.css',
|
|
'dist/**',
|
|
'target/**',
|
|
],
|
|
},
|
|
]
|