-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
40 lines (40 loc) · 1.16 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
/*
* @Author: mjh
* @Date: 2022-09-06 09:21:32
* @LastEditors: mjh
* @LastEditTime: 2022-11-13 22:18:14
* @Description:
*/
module.exports = {
extends: ['@antfu'],
rules: {
'indent': ['error', 4], // 4个空格缩进
'@typescript-eslint/indent': 'off',
'vue/component-tags-order': ['error', {
order: [['template', 'script'], 'style'],
}],
'no-console': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'vue/html-indent': ['warn', 4, {
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}],
'antfu/if-newline': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'vue/custom-event-name-casing': 'off',
'no-async-promise-executor': 'off',
'symbol-description': 'off'
// ['error',
// 'kebab-case',
// {
// ignores: []
// }
// ]
},
}