-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (43 loc) · 1.22 KB
/
eslint.config.js
File metadata and controls
44 lines (43 loc) · 1.22 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
import baseTemplateConfigEs6 from '@sourcetoad/eslint-config-base-template-es6';
import unusedImports from 'eslint-plugin-unused-imports';
import pluginVue from 'eslint-plugin-vue';
import vueParser from 'vue-eslint-parser';
export default [
...pluginVue.configs['flat/essential'],
...baseTemplateConfigEs6,
{
name: 'base-template-config-vue',
plugins: {
'unused-imports': unusedImports,
},
languageOptions: {
parser: vueParser,
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
rules: {
'vue/multi-word-component-names': ['off'],
'vue/html-indent': [
'error',
4,
{
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: [],
},
],
'vue/script-indent': [
'error',
4,
{
baseIndent: 0,
switchCase: 1,
ignores: [],
},
],
},
},
];