chore(eslint): 更新eslint配置,禁用部分规则并添加忽略目录

添加markdown支持为false,并配置忽略目录src/uni_modules/和dist
禁用no-console等规则以提升开发体验
This commit is contained in:
feige996 2025-06-21 16:59:01 +08:00
parent 227f19a93c
commit c355f6e8f1

View File

@ -3,4 +3,19 @@ import antfu from '@antfu/eslint-config'
export default antfu({
unocss: true,
vue: true,
markdown: false,
ignores: [
'src/uni_modules/',
'dist',
],
rules: {
'no-console': 'off',
'no-unused-vars': 'off',
'vue/no-unused-refs': 'off',
'unused-imports/no-unused-vars': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/require-returns-description': 'off',
'ts/no-empty-object-type': 'off',
},
})