ai-coding
2026-08-20 2b7fcabe90aa45abb5e047ee35fe34680d11af9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import antfu from '@antfu/eslint-config'
 
// https://github.com/antfu/eslint-config
export default antfu(
  {
    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',
      },
    },
    // 新增:忽略指定文件
    ignores: ['vite.config.ts'],
  },
)