unibest/eslint.config.mjs
feige996 c355f6e8f1 chore(eslint): 更新eslint配置,禁用部分规则并添加忽略目录
添加markdown支持为false,并配置忽略目录src/uni_modules/和dist
禁用no-console等规则以提升开发体验
2025-06-21 16:59:01 +08:00

22 lines
492 B
JavaScript

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',
},
})