@alicevia/eslint-config-vue 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +20 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -13,6 +13,8 @@ module.exports = {
|
|
13
13
|
{
|
14
14
|
files: ['*.vue'],
|
15
15
|
rules: {
|
16
|
+
'vue/v-on-event-hyphenation': 0,
|
17
|
+
'vue/attribute-hyphenation': 0,
|
16
18
|
'vue/max-attributes-per-line': 'off',
|
17
19
|
'vue/no-v-html': 'off',
|
18
20
|
'vue/require-prop-types': 'off',
|
@@ -40,6 +42,15 @@ module.exports = {
|
|
40
42
|
'vue/no-v-text-v-html-on-component': 'error',
|
41
43
|
'vue/padding-line-between-blocks': ['error', 'always'],
|
42
44
|
'vue/prefer-separate-static-class': 'error',
|
45
|
+
'vue/html-self-closing': ['error', {
|
46
|
+
html: {
|
47
|
+
void: 'never',
|
48
|
+
normal: 'never',
|
49
|
+
component: 'never',
|
50
|
+
},
|
51
|
+
svg: 'always',
|
52
|
+
math: 'always',
|
53
|
+
}],
|
43
54
|
// // extensions
|
44
55
|
// 'vue/array-bracket-spacing': ['error', 'never'],
|
45
56
|
// 'vue/arrow-spacing': ['error', { before: true, after: true }],
|
@@ -93,7 +104,7 @@ module.exports = {
|
|
93
104
|
'@typescript-eslint',
|
94
105
|
],
|
95
106
|
rules: {
|
96
|
-
quotes: ['error', 'single'],
|
107
|
+
quotes: ['error', 'single', { allowTemplateLiterals: true }],
|
97
108
|
'quote-props': ['error', 'as-needed'],
|
98
109
|
indent: ['error', 2],
|
99
110
|
semi: ['error', 'never'],
|
@@ -105,5 +116,13 @@ module.exports = {
|
|
105
116
|
'arrow-spacing': ['error', { before: true, after: true }],
|
106
117
|
'object-curly-spacing': ['error', 'always'],
|
107
118
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
119
|
+
|
120
|
+
},
|
121
|
+
globals: {
|
122
|
+
__dirname: true,
|
123
|
+
process: true,
|
124
|
+
defineProps: true,
|
125
|
+
defineEmits: true,
|
126
|
+
defineExpose: true,
|
108
127
|
},
|
109
128
|
}
|