-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
54 lines (53 loc) · 979 Bytes
/
eslint.config.mjs
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import antfu from '@antfu/eslint-config'
import unjs from 'eslint-config-unjs'
export default antfu(
{
plugins: [
unjs(),
],
ignores: [
'**/.nuxt',
'**/.nitro',
],
rules: {
'unicorn/prefer-top-level-await': 0,
'unicorn/no-empty-file': 0,
},
},
{
ignores: [
'dist',
'.github',
'node_modules',
'public',
'coverage',
'storybook-static',
'.nuxt',
'*.md',
'*.d.ts',
'.nx',
'.vitest-cache',
'__snapshots__',
'.docs',
'packages/core/src/index.ts',
],
},
{
rules: {
'node/prefer-global/process': 'off',
'ts/consistent-type-definitions': 'off',
'ts/no-unused-expressions': 'off',
'@typescript-eslint/prefer-interface': 'off',
},
},
{
files: [
'**/*.vue',
],
rules: {
'import/first': 'off',
'import/order': 'off',
'vue/block-tag-newline': 'off',
},
},
)