-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
39 lines (38 loc) · 1.04 KB
/
eslint.config.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
import antfu from '@antfu/eslint-config'
export default antfu({
formatters: true,
ignores: ['**/public/**'],
}, {
rules: {
'no-console': 0,
'no-eval': 0,
'no-use-before-define': 0,
'ts/no-use-before-define': 0,
'no-new-func': 0,
'no-new': 0,
// http://eslint.cn/docs/rules/curly
'curly': 0,
// https://eslint.cn/docs/rules/brace-style
'brace-style': ['error', '1tbs'],
'style/brace-style': 0,
// 组件名称中横线连接
'vue/component-name-in-template-casing': ['error', 'kebab-case', {
ignores: [],
}],
'no-template-curly-in-string': 0,
// https://eslint.vuejs.org/rules/custom-event-name-casing.html
'vue/custom-event-name-casing': ['error', 'kebab-case'],
'vue/first-attribute-linebreak': ['error', {
singleline: 'ignore',
multiline: 'beside',
}],
},
files: ['**/src/**', '**/packages/*/**', 'vite.config.js', '**/script/**', '**/test/**'],
languageOptions: {
globals: {
BMapGLLib: true,
BMapGL: true,
hl: true,
},
},
})