-
-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy patheslint.config.ts
More file actions
61 lines (54 loc) · 1.35 KB
/
eslint.config.ts
File metadata and controls
61 lines (54 loc) · 1.35 KB
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
55
56
57
58
59
60
61
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': ['error', {
args: 'none',
caughtErrors: 'none',
ignoreRestSiblings: true,
}],
'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' }],
},
}, {
files: ['packages/playground/**/*.vue', '**/*.md/*'],
rules: {
'unused-imports/no-unused-vars': 'off',
},
}, {
ignores: [
'dist',
'node_modules',
'ci.yml',
'release.yml',
'**.svg',
'packages/chrome-extension/overlay/*',
'packages/vite/src/overlay/*',
'packages/chrome-extension/client/*',
'eslint.config.js',
],
})