-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
42 lines (41 loc) · 982 Bytes
/
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
40
41
42
import antfu from '@antfu/eslint-config'
export default antfu({
typescript: {
tsconfigPath: 'tsconfig.json',
parserOptions: {
extraFileExtensions: ['.vue'],
},
},
arrowParens: true,
markdown: false,
rules: {
'object-shorthand': ['error', 'always', {
avoidQuotes: false,
}],
'ts/method-signature-style': ['error', 'method'],
'no-console': 'off',
'unused-imports/no-unused-vars': 'warn',
'vue/component-name-in-template-casing': ['error', 'kebab-case', {
registeredComponentsOnly: false,
}],
'vue/max-attributes-per-line': ['warn', {
singleline: 100,
multiline: 1,
}],
'max-len': [
'warn',
{
code: 125,
ignoreUrls: true,
ignoreComments: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
ignoreTrailingComments: true,
},
],
},
formatters: {
markdown: 'prettier',
},
})