-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
60 lines (55 loc) · 1.49 KB
/
Copy patheslint.config.js
File metadata and controls
60 lines (55 loc) · 1.49 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
import eslint from '@eslint/js'
import configPrettier from 'eslint-config-prettier'
import pluginVue from 'eslint-plugin-vue'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
// Global ignores (including script files and type declarations)
{
ignores: [
'**/dist/**',
'**/.output/**',
'**/.temp/**',
'**/.vitepress/dist/**',
'**/.vitepress/cache/**',
'node_modules/**',
'**/scripts/**',
'**/*.d.ts'
]
},
// Base JS/TS config
eslint.configs.recommended,
...tseslint.configs.recommended,
// Vue config
...pluginVue.configs['flat/recommended'],
// Custom rules
{
files: ['**/*.{ts,vue,mts}'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
extraFileExtensions: ['.vue'],
sourceType: 'module'
},
globals: {
...globals.browser,
...globals.node,
...globals.es2021
}
},
rules: {
'no-undef': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'vue/require-v-for-key': 'off',
'vue/no-v-html': 'off',
'vue/require-default-prop': 'off',
'no-useless-escape': 'off',
'@typescript-eslint/no-explicit-any': 'off'
}
},
// Prettier config (must be last to override styling rules)
configPrettier
)