-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
eslint.config.mjs
51 lines (50 loc) · 1.16 KB
/
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
import antfu from '@antfu/eslint-config'
import globals from 'globals'
import AutoImportGlobals from './src/types/.eslintrc-auto-import.json' with { type: 'json' }
export default antfu(
{
stylistic: false,
typescript: true,
vue: true,
},
{
languageOptions: {
globals: {
...globals.node,
...globals.browser,
...globals.worker,
...globals.webextensions,
...AutoImportGlobals.globals,
},
},
},
{
ignores: [
'node_modules',
'dist',
'**/*.js',
'**/*.d.ts',
'public',
'build',
'coverage',
'tests',
'cypress',
'src/types/**/*',
'eslint.config.mjs',
],
},
{
rules: {
'no-alert': 'warn',
'no-console': 'warn',
'no-restricted-globals': 'warn',
'perfectionist/sort-imports': 'off',
'import/order': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'vue/multi-word-component-names': 'warn',
'@eslint-community/eslint-comments/no-unlimited-disable': 'off',
'ts/explicit-function-return-type': 'off',
},
}
)