-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy patheslint.config.js
More file actions
60 lines (59 loc) · 1.35 KB
/
Copy patheslint.config.js
File metadata and controls
60 lines (59 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
import eslint from '@eslint/js'
import eslintConfigPrettier from 'eslint-config-prettier'
import vue from 'eslint-plugin-vue'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{
ignores: [
'**/dist/**',
'**/node_modules/**',
'src-vscode/webview/**',
'src-vscode/vsix/**',
'src-tauri/target/**',
'sample/**',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
...vue.configs['flat/essential'],
{
files: ['**/*.{js,mjs,ts,vue}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
'no-control-regex': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrors: 'none',
},
],
'vue/multi-word-component-names': 'off',
'vue/no-mutating-props': ['error', { shallowOnly: true }],
},
},
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
},
},
},
{
files: ['**/*.d.ts'],
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
},
},
eslintConfigPrettier,
)