forked from zclzone/vue-naive-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
34 lines (33 loc) · 822 Bytes
/
eslint.config.js
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
import antfu from '@antfu/eslint-config'
export default antfu({
unocss: true,
formatters: true,
stylistic: true,
rules: {
'n/prefer-global/process': 'off',
'no-undef': 'error',
'no-fallthrough': 'off',
'vue/block-order': 'off',
'@typescript-eslint/no-this-alias': 'off',
'prefer-promise-reject-errors': 'off',
},
languageOptions: {
globals: {
h: 'readonly',
unref: 'readonly',
provide: 'readonly',
inject: 'readonly',
markRaw: 'readonly',
defineAsyncComponent: 'readonly',
nextTick: 'readonly',
useRoute: 'readonly',
useRouter: 'readonly',
Message: 'readonly',
$loadingBar: 'readonly',
$message: 'readonly',
$dialog: 'readonly',
$notification: 'readonly',
$modal: 'readonly',
},
},
})