-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.js
45 lines (43 loc) · 1.41 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
import { defineConfig } from '@tb-dev/eslint-config';
export default defineConfig({
project: [
'docs/tsconfig.json',
'examples/pinia/tsconfig.json',
'examples/pinia-nuxt/tsconfig.json',
'examples/shared/javascript/tsconfig.json',
'examples/shared/pinia/tsconfig.json',
'examples/shared/react/tsconfig.json',
'examples/svelte/tsconfig.json',
'examples/valtio/tsconfig.json',
'packages/shared/tsconfig.json',
'packages/tauri-plugin-pinia/tsconfig.json',
'packages/tauri-plugin-svelte/tsconfig.json',
'packages/tauri-plugin-valtio/tsconfig.json',
],
features: {
react: true,
reactHooks: false,
svelte: true,
vue: true,
},
ignores: ['**/.nuxt/**', '**/.svelte-kit', '**/components/ui/**', '**/tauri-store-cli/assets/**'],
overrides: {
svelte: {
'svelte/block-lang': 'off',
'svelte/no-at-html-tags': 'off',
'svelte/no-inline-styles': 'off',
},
typescript: {
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/use-unknown-in-catch-callback-variable': 'off',
// '@typescript-eslint/explicit-module-boundary-types': 'error',
},
vue: {
'vue/enforce-style-attribute': 'off',
'vue/v-on-handler-style': 'off',
},
},
});