This repository was archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
73 lines (59 loc) · 1.88 KB
/
index.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
module.exports = {
extends: [
'plugin:vue/vue3-recommended',
'@vue/eslint-config-airbnb',
'@vue/eslint-config-typescript/recommended'
],
rules: {
// ------------------------------ //
// -- General ESLint rules -- //
// ------------------------------ //
'func-names': 'off',
'space-before-function-paren': ['error', 'always'],
'padded-blocks': ['error', 'never'],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: 'block-like', next: '*' },
{ blankLine: 'always', prev: '*', next: 'block-like' },
{ blankLine: 'always', prev: 'break', next: '*' },
],
// ------------------------ //
// -- Vue rules -- //
// ------------------------ //
'vue/html-indent': ['error', 2, { attribute: 1, closeBracket: 0 }],
'vue/padding-line-between-blocks': ['error', 'always'],
'vue/html-closing-bracket-newline': [
'error',
{
singleline: 'never',
multiline: 'always',
},
],
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea', 'p', 'span', 'li'],
}],
'vue/max-attributes-per-line': ['error', {
singleline: 1,
multiline: {
max: 1,
allowFirstLine: false,
},
}],
'vue/attributes-order': ['error'],
// ------------------------ //
// -- Typescript rules -- //
// ------------------------ //
'@typescript-eslint/no-unused-vars': ['error', {
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
}],
'@typescript-eslint/no-explicit-any': ['error', {}],
'@typescript-eslint/camelcase': [
'error', {
properties: 'never',
},
],
}
}