在原有忽略文件列表中新增了 '*.config.js' 文件类型,同时添加了 'no-console' 和 'no-debugger' 规则,并将其设置为警告级别,以提高 代码质量和一致性。
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
import antfu from '@antfu/eslint-config'
|
|
|
|
export default antfu(
|
|
{
|
|
ignores: ['**/node_modules', '**/public', '**/dist', '**/package.json', '**/*.yaml', '**/.gitignore', '**/.env*', '**/tsconfig*', '**/*.config.js'],
|
|
},
|
|
{
|
|
rules: {
|
|
'no-console': 'warn',
|
|
'no-debugger': 'warn',
|
|
}
|
|
},
|
|
)
|