-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
39 lines (39 loc) · 1.12 KB
/
.eslintrc.cjs
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
module.exports = {
extends: ['plugin:vue/vue3-recommended', 'plugin:vuejs-accessibility/recommended'],
plugins: ['vuejs-accessibility', '@typescript-eslint'],
root: true,
env: { node: true, es6: true },
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
rules: {
quotes: ['error', 'single', { avoidEscape: true }],
semi: ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'keyword-spacing': 'error',
'vue/html-closing-bracket-newline': 'off',
'vue/html-indent': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'always',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': [
'error',
{
ignores: ['index', 'default', 'error', 'privacy', 'register', 'users', 'events', 'Provider', '[id]'],
},
],
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
},
}