提交 | 用户 | age
|
2f6253
|
1 |
module.exports = { |
陈 |
2 |
parser: 'vue-eslint-parser', |
|
3 |
parserOptions: { |
|
4 |
parser: '@typescript-eslint/parser', |
|
5 |
ecmaVersion: 2020, |
|
6 |
sourceType: 'module', |
|
7 |
ecmaFeatures: { |
|
8 |
jsx: true, |
|
9 |
jsx: true, |
|
10 |
}, |
|
11 |
}, |
|
12 |
|
|
13 |
extends: [ |
|
14 |
'plugin:vue/vue3-recommended', |
|
15 |
'plugin:@typescript-eslint/recommended', |
|
16 |
'prettier/@typescript-eslint', |
|
17 |
'plugin:prettier/recommended', |
|
18 |
], |
|
19 |
rules: { |
|
20 |
'@typescript-eslint/ban-ts-ignore': 'off', |
|
21 |
'@typescript-eslint/explicit-function-return-type': 'off', |
|
22 |
'@typescript-eslint/no-explicit-any': 'off', |
|
23 |
'@typescript-eslint/no-var-requires': 'off', |
|
24 |
'@typescript-eslint/no-empty-function': 'off', |
|
25 |
'vue/custom-event-name-casing': 'off', |
|
26 |
'no-use-before-define': 'off', |
|
27 |
// 'no-use-before-define': [ |
|
28 |
// 'error', |
|
29 |
// { |
|
30 |
// functions: false, |
|
31 |
// classes: true, |
|
32 |
// }, |
|
33 |
// ], |
|
34 |
'@typescript-eslint/no-use-before-define': 'off', |
|
35 |
// '@typescript-eslint/no-use-before-define': [ |
|
36 |
// 'error', |
|
37 |
// { |
|
38 |
// functions: false, |
|
39 |
// classes: true, |
|
40 |
// }, |
|
41 |
// ], |
|
42 |
'@typescript-eslint/ban-ts-comment': 'off', |
|
43 |
'@typescript-eslint/ban-types': 'off', |
|
44 |
'@typescript-eslint/no-non-null-assertion': 'off', |
|
45 |
'@typescript-eslint/explicit-module-boundary-types': 'off', |
|
46 |
'@typescript-eslint/no-unused-vars': [ |
|
47 |
'error', |
|
48 |
{ |
|
49 |
argsIgnorePattern: '^h$', |
|
50 |
varsIgnorePattern: '^h$', |
|
51 |
}, |
|
52 |
], |
|
53 |
'no-unused-vars': [ |
|
54 |
'error', |
|
55 |
{ |
|
56 |
argsIgnorePattern: '^h$', |
|
57 |
varsIgnorePattern: '^h$', |
|
58 |
}, |
|
59 |
], |
|
60 |
'space-before-function-paren': 'off', |
|
61 |
}, |
|
62 |
}; |