-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy patheslint.config.js
More file actions
35 lines (29 loc) · 730 Bytes
/
eslint.config.js
File metadata and controls
35 lines (29 loc) · 730 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
30
31
32
33
34
35
import antfu from '@antfu/eslint-config'
const ignores = [
'node_modules',
'**/node_modules/**',
'public',
'**/public/**',
]
export default antfu({
// .eslintignore is no longer supported in Flat config, use ignores instead
ignores,
// Stylistic formatting rules
stylistic: {
indent: 2,
quotes: 'single',
},
// TypeScript and Vue are auto-detected, you can also explicitly enable them
typescript: true,
vue: true,
// Disable jsonc and yaml support
jsonc: false,
yaml: false,
// Overwrite certain rules to your preference
rules: {
'no-console': 'off',
'style/comma-dangle': 'off',
'curly': ['error', 'all'],
'node/prefer-global/process': ['error', 'always'],
},
})