-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 848 Bytes
/
eslint.config.js
File metadata and controls
29 lines (28 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: {
overrides: {
'style/comma-dangle': ['error', 'always-multiline'],
'style/quote-props': ['error', 'as-needed', { keywords: false, unnecessary: true }],
'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'style/max-statements-per-line': ['error', { max: 2 }],
'jsonc/sort-keys': 'off',
'node/prefer-global/process': ['error', 'always'],
'node/prefer-global/console': ['error', 'always'],
'yaml/quotes': ['error', { prefer: 'double' }],
},
},
yaml: {
overrides: {
'yaml/quotes': ['error', { prefer: 'double' }],
},
},
ignores: [
'**/node_modules',
'**/pnpm-lock.yaml',
'**/.turbo',
'helm/templates',
'**/tsconfig.base.json',
'**/tsconfig.json',
],
})