-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
23 lines (22 loc) · 884 Bytes
/
Copy patheslint.config.js
File metadata and controls
23 lines (22 loc) · 884 Bytes
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'
export default antfu({
stylistic: {
indent: 4,
},
typescript: true,
yaml: false,
// genType output, archived code, bot runtime data, and Claude Code local settings — not hand-written
ignores: ['**/*.gen.tsx', 'archive/', 'bot-data/', '.claude/'],
rules: {
'curly': ['error', 'multi-line'],
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/quotes': ['error', 'single', { avoidEscape: true }],
'antfu/if-newline': 'off',
'style/max-statements-per-line': ['error', { max: 2 }],
'no-console': 'off',
'node/prefer-global/process': 'off',
'antfu/no-top-level-await': 'off',
// This repo's test runner is node:test (see FlowTest.res / NodeTest.res), not vitest
'test/no-import-node-test': 'off',
},
})