-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
76 lines (74 loc) · 1.78 KB
/
.eslintrc.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = {
root: true,
env: {
node: true
},
globals: {
// Ref sugar (take 2)
$: 'readonly',
$$: 'readonly',
$ref: 'readonly',
$shallowRef: 'readonly',
$computed: 'readonly',
// index.d.ts
// global.d.ts
Fn: 'readonly',
PromiseFn: 'readonly',
RefType: 'readonly',
LabelValueOptions: 'readonly',
EmitType: 'readonly',
TargetContext: 'readonly',
ComponentElRef: 'readonly',
ComponentRef: 'readonly',
ElRef: 'readonly',
global: 'readonly',
ForDataType: 'readonly',
ComponentRoutes: 'readonly',
// script setup
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly'
},
extends: [
'eslint:recommended',
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true
}
},
rules: {
'@typescript-eslint/no-unused-vars': 0,
'no-unused-vars': 0,
'vue/no-mutating-props': 2,
// 'no-unused-vars': [
// 'warn',
// {
// argsIgnorePattern: '^_',
// varsIgnorePattern: '^_'
// }
// ],
'vue/no-v-html': 'off',
'vue/require-default-prop': 'off',
'vue/require-explicit-emits': 'off',
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'off', // any
'no-debugger': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', // setup()
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto'
}
]
}
}