-
-
Notifications
You must be signed in to change notification settings - Fork 121
/
eslint.config.ts
52 lines (45 loc) · 1.14 KB
/
eslint.config.ts
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
import antfu from '@antfu/eslint-config'
import devtools from './eslint-plugins'
export default antfu({
// force enable vue and typescript rules
vue: true,
typescript: true,
unocss: true,
formatters: {
css: true,
html: true,
markdown: true,
},
// override default rules
rules: {
'vue/no-v-text-v-html-on-component': 'off',
'no-console': 'off',
'antfu/top-level-function': 'off',
'unused-imports/no-unused-vars': 'off',
'node/prefer-global/process': 'off',
'ts/no-invalid-this': 'off',
'ts/consistent-type-imports': 'off',
'ts/ban-types': 'off',
'ts/no-unused-expressions': 'off',
'ts/no-unsafe-function-type': 'off',
'unicorn/consistent-function-scoping': 'off',
},
}, {
files: ['packages/devtools-kit/**/*.ts'],
plugins: { devtools },
rules: {
'devtools/no-vue-runtime-import': ['error', { prefer: 'shared/stub-vue' }],
},
}, {
ignores: [
'dist',
'node_modules',
'ci.yml',
'release.yml',
'**.svg',
'packages/chrome-extension/overlay/*',
'packages/vite/src/overlay/*',
'packages/chrome-extension/client/*',
'eslint.config.js',
],
})