-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (36 loc) · 917 Bytes
/
eslint.config.mjs
File metadata and controls
37 lines (36 loc) · 917 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
36
37
import antfu from '@antfu/eslint-config'
import withNuxt from './.nuxt/eslint.config.mjs'
export default withNuxt(
antfu({
stylistic: true,
imports: true,
pnpm: true,
typescript: true,
vue: true,
}),
{
rules: {
'ts/no-explicit-any': 'off',
'ts/prefer-literal-enum-member': 'off',
'ts/no-dynamic-delete': 'off',
'ts/unified-signatures': 'off',
'ts/no-use-before-define': 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-alert': 'off',
'no-console': 'off',
'node/prefer-global/buffer': 'off',
'node/prefer-global/process': 'off',
'style/brace-style': 'off',
'vue/no-multiple-template-root': 'off',
},
},
{
files: ['docs/content/**/*.md'],
rules: {
'markdown/no-multiple-h1': 'off',
},
},
{
ignores: ['node_modules', '.nuxt', '.agents', '.agent', '.docker', 'dist'],
},
)