-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
54 lines (54 loc) · 1.21 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
node: true,
es2021: true,
},
extends: [
'plugin:vue/vue3-essential',
'@vue/eslint-config-airbnb-with-typescript',
'./.eslintrc-auto-import.json',
],
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
semi: 2,
/** console.log 提醒 */
'no-console': 'warn',
/** 不限制組件名稱 */
'vue/multi-word-component-names': 0,
/** 不限制組件名稱 */
'@typescript-eslint/no-explicit-any': ['off'],
/** ts interface設定結尾符號 */
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'vue/html-indent': ['error', 2, { alignAttributesVertically: false }],
/** templete 排版設定,限至單行或必定分行 */
'vue/first-attribute-linebreak': ['error', {
singleline: 'ignore',
multiline: 'below',
}],
},
settings: {
'import/resolver': {
alias: {
map: [
['@', './src'],
],
extensions: ['.js', '.vue'],
},
},
},
};