forked from element-plus-x/Element-Plus-X
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
39 lines (38 loc) · 949 Bytes
/
eslint.config.mjs
File metadata and controls
39 lines (38 loc) · 949 Bytes
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
import antfu from '@antfu/eslint-config';
export default antfu({
formatters: true,
vue: {
'vue/block-order': ['error', { // 块顺序
order: ['script', 'template', 'style'],
}],
},
stylistic: {
'indent': 2, // 缩进
'semi': true, // 语句分号
'quotes': 'single', // 单引号
},
rules: {
'new-cap': ['off', { newIsCap: true, capIsNew: false }],
'no-console': 'off', // 忽略console
'vue/comma-dangle': 'off',
'@typescript-eslint/comma-dangle': 'off',
'comma-dangle': 'off',
'style/comma-dangle': 'off',
'style/arrow-parens': 'off',
'style/quote-props': 'off',
'style/operator-linebreak': 'off',
'vue/quote-props': 'off',
},
ignores: [
'**/dist/**',
'**/storybook-static/**',
'**/node_modules/**',
'**/build/**',
'**/lib/**',
'**/es/**',
'**/types/**',
'**/public/**',
'**/vite.config.ts',
'**/eslint.config.js',
],
});