Repository navigation
Expand file tree
/
Copy patheslint.config.mjs
More file actions
74 lines (73 loc) · 1.92 KB
/
Copy patheslint.config.mjs
File metadata and controls
74 lines (73 loc) · 1.92 KB
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
import eslint from '@eslint/js';
import pluginVue from 'eslint-plugin-vue';
import stylistic from '@stylistic/eslint-plugin';
import withNuxt from './.nuxt/eslint.config.mjs';
export default withNuxt([
eslint.configs.recommended,
...pluginVue.configs['flat/recommended'],
stylistic.configs.customize({
indent: 2,
quotes: 'single',
semi: true,
commaDangle: 'never'
}),
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'semi': ['error'],
'no-extra-semi': ['error'],
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': ['error'],
'vue/block-order': [
'error',
{
order: ['script', 'template', 'style']
}
],
'vue/attributes-order': ['warn', {
order: [
'DEFINITION',
'LIST_RENDERING',
'CONDITIONALS',
'RENDER_MODIFIERS',
'GLOBAL',
['UNIQUE', 'SLOT'],
'EVENTS',
'TWO_WAY_BINDING',
'OTHER_DIRECTIVES',
'OTHER_ATTR',
'CONTENT'
],
alphabetical: false
}],
'vue/component-name-in-template-casing': ['error', 'PascalCase', {
registeredComponentsOnly: false
}],
'vue/html-self-closing': ['error', {
html: {
normal: 'never', void: 'always'
}
}],
'vue/html-indent': ['error', 2, {
alignAttributesVertically: false
}],
'vue/html-closing-bracket-newline': ['error', {
multiline: 'never'
}],
'no-unused-vars': ['error', {
varsIgnorePattern: '^_+'
}],
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 3
},
multiline: {
max: 1
}
}]
}
}
]);