heritage-frontend/eslint.config.js
Leo f35f60648b 配置:添加构建和工具配置文件
- 添加Vite构建配置(vite.config.ts)
- 添加UnoCSS原子化CSS配置(unocss.config.ts)
- 添加ESLint代码检查配置(eslint.config.js)
- 添加服务接口配置(service.config.ts)
2025-10-08 02:23:13 +08:00

29 lines
778 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// eslint.config.js
import antfu from '@antfu/eslint-config'
// https://github.com/antfu/eslint-config
export default antfu(
{
ignores: [
'doc/**/*.md', // 忽略文档目录下的Markdown文件
],
typescript: {
overrides: {
'perfectionist/sort-exports': 'off',
'perfectionist/sort-imports': 'off',
'ts/no-unused-expressions': ['error', { allowShortCircuit: true }],
},
},
vue: {
overrides: {
'vue/no-unused-refs': 'off', // 暂时关闭等待vue-lint的分支合并
'vue/no-reserved-component-names': 'off',
'vue/component-definition-name-casing': 'off',
'vue/block-order': ['error', {
order: ['template', 'script', 'style'],
}],
},
},
},
)