-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.js
81 lines (80 loc) · 2.03 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// eslint.config.js
// https://github.com/antfu/eslint-config
import antfu from '@antfu/eslint-config'
export default antfu(
{
exclude: ['vite.config.js'],
formatters: {
css: true, // by default use Prettier
html: true, // by default use Prettier
markdown: 'prettier', // use prettier for markdown
toml: 'dprint', // use dprint for TOML
},
rules: {
'no-console': 'off',
'perfectionist/sort-objects': [
'error',
{
'custom-groups': {
id: 'id',
},
'groups': [
'id',
'unknown',
],
'order': 'asc',
'partition-by-comment': 'Part:**',
'type': 'natural',
},
],
'style/array-bracket-newline': [
'error',
{ minItems: 2, multiline: true },
],
'style/func-call-spacing': [
'error',
'never',
],
'style/newline-per-chained-call': [
'error',
{ ignoreChainWithDepth: 2,
},
],
'style/no-confusing-arrow': ['error'],
'style/no-extra-semi': 'error',
'style/nonblock-statement-body-position': [
'error',
'below',
],
'ts/no-floating-promises': 'off',
'ts/no-misused-promises': 'off',
'ts/no-unsafe-argument': 'off',
'ts/no-unsafe-assignment': 'off',
'ts/no-unsafe-call': 'off',
'ts/no-unsafe-member-access': 'off',
'ts/no-unsafe-return': 'off',
'vue/max-len': [
'error',
{
code: 120,
ignoreComments: true,
ignoreHTMLAttributeValues: true,
ignoreHTMLTextContents: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
tabWidth: 2,
template: 120,
},
],
'vue/no-mutating-props': 'off',
'vue/no-v-text-v-html-on-component': 'off',
},
stylistic: true,
typescript: {
tsconfigPath: 'tsconfig.json',
},
vue: true,
},
)