@dialpad/eslint-plugin-dialtone 1.2.0 → 1.3.0
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.
|
@@ -7,8 +7,12 @@ This informs developers of deprecated product side components that should be rep
|
|
|
7
7
|
Currently the components with the below filenames are considered deprecated:
|
|
8
8
|
|
|
9
9
|
- select_menu
|
|
10
|
+
- dropdown_menu
|
|
11
|
+
- base_toggle
|
|
12
|
+
- base_date_picker
|
|
13
|
+
- checkbox
|
|
10
14
|
|
|
11
|
-
This rule specifically targets components in ubervoice. If you are using Dialtone Vue outside of ubervoice you
|
|
15
|
+
This rule specifically targets components in ubervoice. If you are using Dialtone Vue outside of ubervoice you should not enable this rule.
|
|
12
16
|
|
|
13
17
|
Examples of **incorrect** code for this rule:
|
|
14
18
|
|
|
@@ -33,6 +33,30 @@ module.exports = {
|
|
|
33
33
|
componentName: 'SelectMenu',
|
|
34
34
|
replacement: 'DtComboboxWithPopover',
|
|
35
35
|
link: 'https://vue.dialpad.design/?path=/story/recipes-comboboxes-combobox-with-popover--default'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
fileName: 'dropdown_menu',
|
|
39
|
+
componentName: 'DropdownMenu',
|
|
40
|
+
replacement: 'DtSelectMenu',
|
|
41
|
+
link: 'https://vue.dialpad.design/?path=/story/components-select-menu--default'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
fileName: 'base_toggle',
|
|
45
|
+
componentName: 'BaseToggle',
|
|
46
|
+
replacement: 'DtToggle',
|
|
47
|
+
link: 'https://vue.dialpad.design/?path=/story/components-toggle--default'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
fileName: 'base_date_picker',
|
|
51
|
+
componentName: 'BaseDatePicker',
|
|
52
|
+
replacement: 'DtDatepicker',
|
|
53
|
+
link: 'https://vue.dialpad.design/?path=/story/components-datepicker--default'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
fileName: 'checkbox',
|
|
57
|
+
componentName: 'Checkbox',
|
|
58
|
+
replacement: 'DtCheckbox',
|
|
59
|
+
link: 'https://vue.dialpad.design/?path=/story/components-checkbox--default'
|
|
36
60
|
}
|
|
37
61
|
]
|
|
38
62
|
|
package/package.json
CHANGED
|
@@ -47,5 +47,77 @@ ruleTester.run("deprecated-component", rule, {
|
|
|
47
47
|
}
|
|
48
48
|
],
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Deprecated DropdownMenu',
|
|
52
|
+
code: "import DropdownMenu from '../components/dropdown_menu';",
|
|
53
|
+
errors: [
|
|
54
|
+
{
|
|
55
|
+
messageId: "deprecatedComponent"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Deprecated DropdownMenu .vue',
|
|
61
|
+
code: "import DropdownMenu from '../components/dropdown_menu.vue';",
|
|
62
|
+
errors: [
|
|
63
|
+
{
|
|
64
|
+
messageId: "deprecatedComponent"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Deprecated BaseToggle',
|
|
70
|
+
code: "import BaseToggle from '../components/base_toggle';",
|
|
71
|
+
errors: [
|
|
72
|
+
{
|
|
73
|
+
messageId: "deprecatedComponent"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Deprecated BaseToggle .vue',
|
|
79
|
+
code: "import BaseToggle from '../components/base_toggle.vue';",
|
|
80
|
+
errors: [
|
|
81
|
+
{
|
|
82
|
+
messageId: "deprecatedComponent"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'Deprecated BaseDatePicker',
|
|
88
|
+
code: "import BaseDatePicker from '../components/base_date_picker';",
|
|
89
|
+
errors: [
|
|
90
|
+
{
|
|
91
|
+
messageId: "deprecatedComponent"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Deprecated BaseDatePicker .vue',
|
|
97
|
+
code: "import BaseDatePicker from '../components/base_date_picker.vue';",
|
|
98
|
+
errors: [
|
|
99
|
+
{
|
|
100
|
+
messageId: "deprecatedComponent"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Deprecated Checkbox',
|
|
106
|
+
code: "import Checkbox from '../components/checkbox';",
|
|
107
|
+
errors: [
|
|
108
|
+
{
|
|
109
|
+
messageId: "deprecatedComponent"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Deprecated Checkbox .vue',
|
|
115
|
+
code: "import Checkbox from '../components/checkbox.vue';",
|
|
116
|
+
errors: [
|
|
117
|
+
{
|
|
118
|
+
messageId: "deprecatedComponent"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
},
|
|
50
122
|
],
|
|
51
123
|
});
|