eslint-plugin-vuetify 2.0.0-beta.4 → 2.0.2
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.
|
@@ -18,13 +18,8 @@ const replacements = {
|
|
|
18
18
|
VListItemSubTitle: 'v-list-item-subtitle',
|
|
19
19
|
VListTileSubtitle: 'v-list-item-subtitle',
|
|
20
20
|
VContent: 'v-main',
|
|
21
|
-
VBannerActions: false,
|
|
22
|
-
VBannerText: false,
|
|
23
|
-
VBottomSheet: false,
|
|
24
21
|
VCalendar: false,
|
|
25
22
|
VData: false,
|
|
26
|
-
VDataIterator: false,
|
|
27
|
-
VDataTable: false,
|
|
28
23
|
VDatePicker: false,
|
|
29
24
|
VListItemGroup: false,
|
|
30
25
|
VListItemAvatar: false,
|
|
@@ -34,7 +29,6 @@ const replacements = {
|
|
|
34
29
|
VOverflowBtn: false,
|
|
35
30
|
VPicker: false,
|
|
36
31
|
VSimpleCheckbox: 'v-checkbox-btn',
|
|
37
|
-
VSkeletonLoader: false,
|
|
38
32
|
VSparkline: false,
|
|
39
33
|
VSpeedDial: false,
|
|
40
34
|
VStepper: false,
|
|
@@ -43,8 +37,7 @@ const replacements = {
|
|
|
43
37
|
},
|
|
44
38
|
VSimpleTable: 'v-table',
|
|
45
39
|
VTimePicker: false,
|
|
46
|
-
VTreeview: false
|
|
47
|
-
VVirtualScroll: false
|
|
40
|
+
VTreeview: false
|
|
48
41
|
};
|
|
49
42
|
|
|
50
43
|
// ------------------------------------------------------------------------------
|
|
@@ -61,6 +54,7 @@ module.exports = {
|
|
|
61
54
|
schema: [],
|
|
62
55
|
messages: {
|
|
63
56
|
replacedWith: `'{{ a }}' has been replaced with '{{ b }}'`,
|
|
57
|
+
replacedWithCustom: `'{{ a }}' has been replaced with {{ b }}`,
|
|
64
58
|
removed: `'{{ name }}' has been removed`
|
|
65
59
|
}
|
|
66
60
|
},
|
|
@@ -71,7 +65,16 @@ module.exports = {
|
|
|
71
65
|
const tokens = context.parserServices.getTemplateBodyTokenStore();
|
|
72
66
|
if (Object.prototype.hasOwnProperty.call(replacements, tag)) {
|
|
73
67
|
const replacement = replacements[tag];
|
|
74
|
-
if (replacement) {
|
|
68
|
+
if (typeof replacement === 'object' && 'custom' in replacement) {
|
|
69
|
+
context.report({
|
|
70
|
+
node: element,
|
|
71
|
+
messageId: 'replacedWithCustom',
|
|
72
|
+
data: {
|
|
73
|
+
a: hyphenate(tag),
|
|
74
|
+
b: replacement.custom
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
} else if (typeof replacement === 'string') {
|
|
75
78
|
context.report({
|
|
76
79
|
node: element,
|
|
77
80
|
messageId: 'replacedWith',
|
|
@@ -89,7 +92,7 @@ module.exports = {
|
|
|
89
92
|
return [fixer.replaceText(open, `<${replacement}`), fixer.replaceText(endTagOpen, `</${replacement}`)];
|
|
90
93
|
}
|
|
91
94
|
});
|
|
92
|
-
} else {
|
|
95
|
+
} else if (!replacement) {
|
|
93
96
|
context.report({
|
|
94
97
|
node: element,
|
|
95
98
|
messageId: 'removed',
|
|
@@ -48,7 +48,6 @@ const inputs = {
|
|
|
48
48
|
name: 'variant',
|
|
49
49
|
value: 'filled'
|
|
50
50
|
},
|
|
51
|
-
flat: false,
|
|
52
51
|
fullWidth: false,
|
|
53
52
|
height: false,
|
|
54
53
|
hideSpinButtons: false,
|
|
@@ -559,7 +558,6 @@ const replacements = {
|
|
|
559
558
|
name: 'density',
|
|
560
559
|
value: 'compact'
|
|
561
560
|
},
|
|
562
|
-
ripple: false,
|
|
563
561
|
selectable: {
|
|
564
562
|
custom: 'value'
|
|
565
563
|
},
|