-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy patheslint.config.js
More file actions
9 lines (8 loc) · 934 Bytes
/
Copy patheslint.config.js
File metadata and controls
9 lines (8 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
import antfu from '@antfu/eslint-config'
export default antfu({
ignores: ['node_modules', 'node_modules/**', '.md', '.pnp', '.pnp/**', '.pnp.js', '**/.pnp.js/**', 'coverage', 'coverage/**', 'test-results/', 'test-results/**/', 'playwright-report/', 'playwright-report/**/', 'playwright/.cache/', 'playwright/.cache/**/', 'dist', 'dist/**', 'high-level-dependencies.html', '**/high-level-dependencies.html/**', '.DS_Store', '**/.DS_Store/**', '*.pem', '**/*.pem/**', 'npm-debug.log*', '**/npm-debug.log*/**', 'yarn-debug.log*', '**/yarn-debug.log*/**', 'yarn-error.log*', '**/yarn-error.log*/**', '.pnpm-debug.log*', '**/.pnpm-debug.log*/**', '.env*.local', '**/.env*.local/**', '.vercel', '**/.vercel/**', '**/.sisyphus/**', '**/*.agent/**', '**/*.cursor/**', '**/docs/**', '**/*.md/**'],
rules: {
// 允许使用 console.debug (用于调试功能)
'no-console': ['error', { allow: ['warn', 'error', 'debug'] }],
},
})