Files
reader-star/eslint.config.js
rjl 782c61a38c chore(admin): 优化PWA配置并更新资源文件
- 增强PWA开发环境支持,添加devOptions配置以便调试
- 优化Workbox缓存策略,排除大型SVG文件预缓存
- 添加运行时缓存规则支持SVG、图片等资源的CacheFirst策略
- 更新PWA manifest图标路径,使用public文件夹中的新图标资源
- 添加Service Worker注册文件和Workbox库文件
- 替换favicon.svg为favicon.ico,新增多种尺寸的PWA图标
- 生成PWA构建报告文件
- 优化manifest描述信息
2026-03-16 10:55:53 +08:00

26 lines
664 B
JavaScript

// @ts-check
import { readStarConfig } from '@read-star/eslint-config'
export default readStarConfig(
{
vue: true,
unocss: true,
ignores: [
'**/dist/**',
'**/node_modules/**',
'**/public/**',
'pnpm-lock.yaml',
'**/*.md',
'**/report.html',
],
},
{
rules: {
'vue/multi-word-component-names': ['warn', { ignores: ['index', 'App', 'Register', '[id]', '[url]'] }],
'vue/component-name-in-template-casing': ['warn', 'PascalCase', { registeredComponentsOnly: false, ignores: ['/^icon-/'] }],
'unocss/order-attributify': 'off',
'regexp/no-unused-capturing-group': 'off',
},
},
)