@elastic/eslint-plugin-eui 2.15.0 → 2.16.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.
- package/README.md +125 -0
- package/lib/cjs/index.js +10 -1
- package/lib/cjs/rules/a11y/no_nested_copy_tooltip.d.ts +3 -0
- package/lib/cjs/rules/a11y/no_nested_copy_tooltip.d.ts.map +1 -0
- package/lib/cjs/rules/a11y/no_nested_copy_tooltip.js +84 -0
- package/lib/cjs/rules/a11y/tooltip_button_icon_wrap.d.ts.map +1 -1
- package/lib/cjs/rules/a11y/tooltip_button_icon_wrap.js +29 -1
- package/lib/cjs/rules/a11y/tooltip_no_interactive_content.d.ts.map +1 -1
- package/lib/cjs/rules/a11y/tooltip_no_interactive_content.js +17 -45
- package/lib/cjs/rules/button_group_no_invalid_children.d.ts +3 -0
- package/lib/cjs/rules/button_group_no_invalid_children.d.ts.map +1 -0
- package/lib/cjs/rules/button_group_no_invalid_children.js +159 -0
- package/lib/cjs/rules/callout_prefer_props_for_content.d.ts.map +1 -1
- package/lib/cjs/rules/callout_prefer_props_for_content.js +93 -156
- package/lib/cjs/rules/no_deprecated_icon_aliases.d.ts +174 -0
- package/lib/cjs/rules/no_deprecated_icon_aliases.d.ts.map +1 -0
- package/lib/cjs/rules/no_deprecated_icon_aliases.js +302 -0
- package/lib/cjs/utils/flat_map.d.ts +2 -0
- package/lib/cjs/utils/flat_map.d.ts.map +1 -0
- package/lib/cjs/utils/flat_map.js +24 -0
- package/lib/cjs/utils/has_meaningful_attr.d.ts +20 -0
- package/lib/cjs/utils/has_meaningful_attr.d.ts.map +1 -0
- package/lib/cjs/utils/has_meaningful_attr.js +61 -0
- package/lib/cjs/utils/is_fragment.d.ts +8 -0
- package/lib/cjs/utils/is_fragment.d.ts.map +1 -0
- package/lib/cjs/utils/is_fragment.js +26 -0
- package/lib/cjs/utils/walk_jsx_children.d.ts +30 -0
- package/lib/cjs/utils/walk_jsx_children.d.ts.map +1 -0
- package/lib/cjs/utils/walk_jsx_children.js +210 -0
- package/lib/esm/index.js +9 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/rules/a11y/no_nested_copy_tooltip.d.ts +2 -0
- package/lib/esm/rules/a11y/no_nested_copy_tooltip.js +84 -0
- package/lib/esm/rules/a11y/no_nested_copy_tooltip.js.map +1 -0
- package/lib/esm/rules/a11y/tooltip_button_icon_wrap.js +31 -0
- package/lib/esm/rules/a11y/tooltip_button_icon_wrap.js.map +1 -1
- package/lib/esm/rules/a11y/tooltip_no_interactive_content.js +19 -42
- package/lib/esm/rules/a11y/tooltip_no_interactive_content.js.map +1 -1
- package/lib/esm/rules/button_group_no_invalid_children.d.ts +2 -0
- package/lib/esm/rules/button_group_no_invalid_children.js +198 -0
- package/lib/esm/rules/button_group_no_invalid_children.js.map +1 -0
- package/lib/esm/rules/callout_prefer_props_for_content.js +75 -112
- package/lib/esm/rules/callout_prefer_props_for_content.js.map +1 -1
- package/lib/esm/rules/no_deprecated_icon_aliases.d.ts +173 -0
- package/lib/esm/rules/no_deprecated_icon_aliases.js +307 -0
- package/lib/esm/rules/no_deprecated_icon_aliases.js.map +1 -0
- package/lib/esm/utils/flat_map.d.ts +1 -0
- package/lib/esm/utils/flat_map.js +22 -0
- package/lib/esm/utils/flat_map.js.map +1 -0
- package/lib/esm/utils/has_meaningful_attr.d.ts +19 -0
- package/lib/esm/utils/has_meaningful_attr.js +55 -0
- package/lib/esm/utils/has_meaningful_attr.js.map +1 -0
- package/lib/esm/utils/is_fragment.d.ts +7 -0
- package/lib/esm/utils/is_fragment.js +26 -0
- package/lib/esm/utils/is_fragment.js.map +1 -0
- package/lib/esm/utils/walk_jsx_children.d.ts +29 -0
- package/lib/esm/utils/walk_jsx_children.js +213 -0
- package/lib/esm/utils/walk_jsx_children.js.map +1 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ exports.CallOutPreferPropsForContent = void 0;
|
|
|
7
7
|
var _utils = require("@typescript-eslint/utils");
|
|
8
8
|
var _constants = require("../utils/constants");
|
|
9
9
|
var _get_element_name = require("../utils/get_element_name");
|
|
10
|
+
var _walk_jsx_children = require("../utils/walk_jsx_children");
|
|
10
11
|
/*
|
|
11
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
13
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -17,161 +18,6 @@ var _get_element_name = require("../utils/get_element_name");
|
|
|
17
18
|
|
|
18
19
|
const DEFAULT_COMPONENTS = ['EuiCallOut'];
|
|
19
20
|
const EUI_ACTION_COMPONENTS = new Set(_constants.INTERACTIVE_EUI_COMPONENTS.filter(c => c.startsWith('EuiButton') || c === 'EuiLink'));
|
|
20
|
-
/**
|
|
21
|
-
* Recursively checks a node for text or action elements that should not be in callout children.
|
|
22
|
-
* It unwraps fragments, layout containers, conditional expressions, and logical expressions.
|
|
23
|
-
* It does NOT traverse into custom/complex component children.
|
|
24
|
-
*/
|
|
25
|
-
function checkNode(node, context, componentName) {
|
|
26
|
-
switch (node.type) {
|
|
27
|
-
case 'JSXText':
|
|
28
|
-
{
|
|
29
|
-
// Plain string content
|
|
30
|
-
if (node.value.trim().length > 0) {
|
|
31
|
-
context.report({
|
|
32
|
-
node,
|
|
33
|
-
messageId: 'childrenHavePlainText',
|
|
34
|
-
data: {
|
|
35
|
-
componentName
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
case 'Literal':
|
|
42
|
-
{
|
|
43
|
-
const {
|
|
44
|
-
value
|
|
45
|
-
} = node;
|
|
46
|
-
if (typeof value === 'string' && value.trim().length > 0) {
|
|
47
|
-
context.report({
|
|
48
|
-
node,
|
|
49
|
-
messageId: 'childrenHavePlainText',
|
|
50
|
-
data: {
|
|
51
|
-
componentName
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
case 'JSXElement':
|
|
58
|
-
{
|
|
59
|
-
const el = node;
|
|
60
|
-
const {
|
|
61
|
-
name
|
|
62
|
-
} = el.openingElement;
|
|
63
|
-
if (name.type === 'JSXMemberExpression' && name.object.type === 'JSXIdentifier' && name.object.name === 'React' && name.property.type === 'JSXIdentifier' && name.property.name === 'Fragment') {
|
|
64
|
-
for (const child of el.children) {
|
|
65
|
-
checkNode(child, context, componentName);
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
const elementName = (0, _get_element_name.getElementName)(el.openingElement);
|
|
70
|
-
if (!elementName) return;
|
|
71
|
-
if (_constants.HTML_TEXT_ELEMENTS.has(elementName) || _constants.EUI_TEXT_COMPONENTS.has(elementName) || _constants.I18N_TEXT_COMPONENTS.has(elementName)) {
|
|
72
|
-
context.report({
|
|
73
|
-
node,
|
|
74
|
-
messageId: 'childrenHaveText',
|
|
75
|
-
data: {
|
|
76
|
-
elementName,
|
|
77
|
-
componentName
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
} else if (_constants.HTML_ACTION_ELEMENTS.has(elementName) || EUI_ACTION_COMPONENTS.has(elementName)) {
|
|
81
|
-
context.report({
|
|
82
|
-
node,
|
|
83
|
-
messageId: 'childrenHaveActions',
|
|
84
|
-
data: {
|
|
85
|
-
elementName,
|
|
86
|
-
componentName
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
} else if (_constants.CALLOUT_LAYOUT_CONTAINERS.has(elementName)) {
|
|
90
|
-
// Transparent layout wrapper, traverse its children
|
|
91
|
-
for (const child of el.children) {
|
|
92
|
-
checkNode(child, context, componentName);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Custom/complex component, don't traverse its children
|
|
97
|
-
break;
|
|
98
|
-
}
|
|
99
|
-
case 'JSXFragment':
|
|
100
|
-
{
|
|
101
|
-
for (const child of node.children) {
|
|
102
|
-
checkNode(child, context, componentName);
|
|
103
|
-
}
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
case 'MemberExpression':
|
|
107
|
-
{
|
|
108
|
-
const {
|
|
109
|
-
object
|
|
110
|
-
} = node;
|
|
111
|
-
if (object.type === 'Identifier' && object.name === 'i18n') {
|
|
112
|
-
context.report({
|
|
113
|
-
node,
|
|
114
|
-
messageId: 'childrenHavePlainText',
|
|
115
|
-
data: {
|
|
116
|
-
componentName
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
case 'TemplateLiteral':
|
|
123
|
-
{
|
|
124
|
-
context.report({
|
|
125
|
-
node,
|
|
126
|
-
messageId: 'childrenHavePlainText',
|
|
127
|
-
data: {
|
|
128
|
-
componentName
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
case 'ArrayExpression':
|
|
134
|
-
{
|
|
135
|
-
for (const element of node.elements) {
|
|
136
|
-
if (element) checkNode(element, context, componentName);
|
|
137
|
-
}
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
case 'JSXExpressionContainer':
|
|
141
|
-
{
|
|
142
|
-
const {
|
|
143
|
-
expression
|
|
144
|
-
} = node;
|
|
145
|
-
if (expression.type !== 'JSXEmptyExpression') {
|
|
146
|
-
checkNode(expression, context, componentName);
|
|
147
|
-
}
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
case 'LogicalExpression':
|
|
151
|
-
{
|
|
152
|
-
const {
|
|
153
|
-
left,
|
|
154
|
-
right
|
|
155
|
-
} = node;
|
|
156
|
-
checkNode(left, context, componentName);
|
|
157
|
-
checkNode(right, context, componentName);
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
case 'ConditionalExpression':
|
|
161
|
-
{
|
|
162
|
-
// e.g. {condition ? <p>text</p> : null}
|
|
163
|
-
const {
|
|
164
|
-
consequent,
|
|
165
|
-
alternate
|
|
166
|
-
} = node;
|
|
167
|
-
checkNode(consequent, context, componentName);
|
|
168
|
-
checkNode(alternate, context, componentName);
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
default:
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
21
|
const CallOutPreferPropsForContent = exports.CallOutPreferPropsForContent = _utils.ESLintUtils.RuleCreator.withoutDocs({
|
|
176
22
|
create(context) {
|
|
177
23
|
const components = new Set(context.options[0]?.components ?? DEFAULT_COMPONENTS);
|
|
@@ -184,8 +30,99 @@ const CallOutPreferPropsForContent = exports.CallOutPreferPropsForContent = _uti
|
|
|
184
30
|
if (openingElement.name.type !== 'JSXIdentifier' || !components.has(openingElement.name.name)) {
|
|
185
31
|
return;
|
|
186
32
|
}
|
|
33
|
+
const componentName = openingElement.name.name;
|
|
187
34
|
for (const child of children) {
|
|
188
|
-
|
|
35
|
+
(0, _walk_jsx_children.walkJsxChildren)(child, leaf => {
|
|
36
|
+
switch (leaf.type) {
|
|
37
|
+
case 'JSXText':
|
|
38
|
+
{
|
|
39
|
+
if (leaf.value.trim().length > 0) {
|
|
40
|
+
context.report({
|
|
41
|
+
node: leaf,
|
|
42
|
+
messageId: 'childrenHavePlainText',
|
|
43
|
+
data: {
|
|
44
|
+
componentName
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
case 'Literal':
|
|
51
|
+
{
|
|
52
|
+
const {
|
|
53
|
+
value
|
|
54
|
+
} = leaf;
|
|
55
|
+
if (typeof value === 'string' && value.trim().length > 0) {
|
|
56
|
+
context.report({
|
|
57
|
+
node: leaf,
|
|
58
|
+
messageId: 'childrenHavePlainText',
|
|
59
|
+
data: {
|
|
60
|
+
componentName
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
case 'TemplateLiteral':
|
|
67
|
+
{
|
|
68
|
+
context.report({
|
|
69
|
+
node: leaf,
|
|
70
|
+
messageId: 'childrenHavePlainText',
|
|
71
|
+
data: {
|
|
72
|
+
componentName
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case 'MemberExpression':
|
|
78
|
+
{
|
|
79
|
+
const {
|
|
80
|
+
object
|
|
81
|
+
} = leaf;
|
|
82
|
+
if (object.type === 'Identifier' && object.name === 'i18n') {
|
|
83
|
+
context.report({
|
|
84
|
+
node: leaf,
|
|
85
|
+
messageId: 'childrenHavePlainText',
|
|
86
|
+
data: {
|
|
87
|
+
componentName
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
case 'JSXElement':
|
|
94
|
+
{
|
|
95
|
+
const el = leaf;
|
|
96
|
+
const elementName = (0, _get_element_name.getElementName)(el.openingElement);
|
|
97
|
+
if (!elementName) break;
|
|
98
|
+
if (_constants.HTML_TEXT_ELEMENTS.has(elementName) || _constants.EUI_TEXT_COMPONENTS.has(elementName) || _constants.I18N_TEXT_COMPONENTS.has(elementName)) {
|
|
99
|
+
context.report({
|
|
100
|
+
node: leaf,
|
|
101
|
+
messageId: 'childrenHaveText',
|
|
102
|
+
data: {
|
|
103
|
+
elementName,
|
|
104
|
+
componentName
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
} else if (_constants.HTML_ACTION_ELEMENTS.has(elementName) || EUI_ACTION_COMPONENTS.has(elementName)) {
|
|
108
|
+
context.report({
|
|
109
|
+
node: leaf,
|
|
110
|
+
messageId: 'childrenHaveActions',
|
|
111
|
+
data: {
|
|
112
|
+
elementName,
|
|
113
|
+
componentName
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
shouldSkip: el => {
|
|
122
|
+
const name = (0, _get_element_name.getElementName)(el.openingElement);
|
|
123
|
+
return !!name && _constants.CALLOUT_LAYOUT_CONTAINERS.has(name);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
189
126
|
}
|
|
190
127
|
}
|
|
191
128
|
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
export declare const DEPRECATED_ICON_ALIASES: {
|
|
3
|
+
readonly alert: "warning";
|
|
4
|
+
readonly anomalyChart: "chartAnomaly";
|
|
5
|
+
readonly apmTrace: "chartWaterfall";
|
|
6
|
+
readonly arrowDown: "chevronSingleDown";
|
|
7
|
+
readonly arrowEnd: "chevronLimitRight";
|
|
8
|
+
readonly arrowLeft: "chevronSingleLeft";
|
|
9
|
+
readonly arrowRight: "chevronSingleRight";
|
|
10
|
+
readonly arrowStart: "chevronLimitLeft";
|
|
11
|
+
readonly arrowUp: "chevronSingleUp";
|
|
12
|
+
readonly beaker: "flask";
|
|
13
|
+
readonly boxesHorizontal: "ellipsis";
|
|
14
|
+
readonly boxesVertical: "ellipsis";
|
|
15
|
+
readonly changePointDetection: "chartChangePoint";
|
|
16
|
+
readonly checkInCircleFilled: "checkCircleFill";
|
|
17
|
+
readonly cheer: "popper";
|
|
18
|
+
readonly color: "paintBucket";
|
|
19
|
+
readonly compute: "processor";
|
|
20
|
+
readonly console: "commandLine";
|
|
21
|
+
readonly contrastHigh: "contrastFill";
|
|
22
|
+
readonly controlsHorizontal: "controls";
|
|
23
|
+
readonly controlsVertical: "controls";
|
|
24
|
+
readonly copyClipboard: "copy";
|
|
25
|
+
readonly crossInCircle: "crossCircle";
|
|
26
|
+
readonly crosshairs: "crosshair";
|
|
27
|
+
readonly currency: "money";
|
|
28
|
+
readonly cut: "scissors";
|
|
29
|
+
readonly desktop: "display";
|
|
30
|
+
readonly diff: "compare";
|
|
31
|
+
readonly discuss: "comment";
|
|
32
|
+
readonly documentEdit: "pencil";
|
|
33
|
+
readonly documents: "document";
|
|
34
|
+
readonly doubleArrowLeft: "chevronDoubleLeft";
|
|
35
|
+
readonly doubleArrowRight: "chevronDoubleRight";
|
|
36
|
+
readonly editorAlignCenter: "textAlignCenter";
|
|
37
|
+
readonly editorAlignLeft: "textAlignLeft";
|
|
38
|
+
readonly editorAlignRight: "textAlignRight";
|
|
39
|
+
readonly editorBold: "textBold";
|
|
40
|
+
readonly editorChecklist: "listCheck";
|
|
41
|
+
readonly editorCodeBlock: "code";
|
|
42
|
+
readonly editorComment: "comment";
|
|
43
|
+
readonly editorDistributeHorizontal: "distributeHorizontal";
|
|
44
|
+
readonly editorDistributeVertical: "distributeVertical";
|
|
45
|
+
readonly editorHeading: "textHeading";
|
|
46
|
+
readonly editorItalic: "textItalic";
|
|
47
|
+
readonly editorItemAlignBottom: "alignBottom";
|
|
48
|
+
readonly editorItemAlignCenter: "alignCenterHorizontal";
|
|
49
|
+
readonly editorItemAlignLeft: "alignLeft";
|
|
50
|
+
readonly editorItemAlignMiddle: "alignCenterVertical";
|
|
51
|
+
readonly editorItemAlignRight: "alignRight";
|
|
52
|
+
readonly editorItemAlignTop: "alignTop";
|
|
53
|
+
readonly editorLink: "link";
|
|
54
|
+
readonly editorOrderedList: "listNumber";
|
|
55
|
+
readonly editorPositionBottomLeft: "alignBottomLeft";
|
|
56
|
+
readonly editorPositionBottomRight: "alignBottomRight";
|
|
57
|
+
readonly editorPositionTopLeft: "alignTopLeft";
|
|
58
|
+
readonly editorPositionTopRight: "alignTopRight";
|
|
59
|
+
readonly editorRedo: "redo";
|
|
60
|
+
readonly editorStrike: "textStrike";
|
|
61
|
+
readonly editorTable: "table";
|
|
62
|
+
readonly editorUnderline: "textUnderline";
|
|
63
|
+
readonly editorUndo: "undo";
|
|
64
|
+
readonly editorUnorderedList: "listBullet";
|
|
65
|
+
readonly email: "mail";
|
|
66
|
+
readonly eql: "query";
|
|
67
|
+
readonly errorFilled: "errorFill";
|
|
68
|
+
readonly exit: "logOut";
|
|
69
|
+
readonly expand: "maximize";
|
|
70
|
+
readonly expandMini: "maximize";
|
|
71
|
+
readonly export: "upload";
|
|
72
|
+
readonly exportAction: "upload";
|
|
73
|
+
readonly eyeClosed: "eyeSlash";
|
|
74
|
+
readonly fieldStatistics: "tableInfo";
|
|
75
|
+
readonly filterInCircle: "filter";
|
|
76
|
+
readonly folderCheck: "check";
|
|
77
|
+
readonly folderOpened: "folderOpen";
|
|
78
|
+
readonly glasses: "readOnly";
|
|
79
|
+
readonly grab: "dragVertical";
|
|
80
|
+
readonly grabHorizontal: "dragHorizontal";
|
|
81
|
+
readonly grabOmnidirectional: "drag";
|
|
82
|
+
readonly heatmap: "chartHeatmap";
|
|
83
|
+
readonly importAction: "download";
|
|
84
|
+
readonly indexClose: "tableCross";
|
|
85
|
+
readonly indexEdit: "tablePencil";
|
|
86
|
+
readonly indexFlush: "chartThreshold";
|
|
87
|
+
readonly indexMapping: "mapping";
|
|
88
|
+
readonly indexOpen: "tablePlus";
|
|
89
|
+
readonly indexRuntime: "tablePlay";
|
|
90
|
+
readonly indexSettings: "tableGear";
|
|
91
|
+
readonly indexTemporary: "tableTime";
|
|
92
|
+
readonly invert: "contrast";
|
|
93
|
+
readonly kqlField: "queryField";
|
|
94
|
+
readonly kqlOperand: "queryOperand";
|
|
95
|
+
readonly kqlSelector: "querySelector";
|
|
96
|
+
readonly kqlValue: "queryValue";
|
|
97
|
+
readonly kubernetesPod: "cube";
|
|
98
|
+
readonly launch: "rocket";
|
|
99
|
+
readonly lettering: "text";
|
|
100
|
+
readonly lineDashed: "lineDash";
|
|
101
|
+
readonly lineDotted: "lineDot";
|
|
102
|
+
readonly list: "listBullet";
|
|
103
|
+
readonly listAdd: "plusCircle";
|
|
104
|
+
readonly logPatternAnalysis: "pattern";
|
|
105
|
+
readonly logRateAnalysis: "chartBarVertical";
|
|
106
|
+
readonly logstashIf: "if";
|
|
107
|
+
readonly logstashQueue: "queue";
|
|
108
|
+
readonly magnifyWithExclamation: "magnifyExclamation";
|
|
109
|
+
readonly magnifyWithMinus: "magnifyMinus";
|
|
110
|
+
readonly magnifyWithPlus: "magnifyPlus";
|
|
111
|
+
readonly mapMarker: "waypoint";
|
|
112
|
+
readonly minusInCircle: "minusCircle";
|
|
113
|
+
readonly minusInCircleFilled: "minusCircle";
|
|
114
|
+
readonly minusInSquare: "minusSquare";
|
|
115
|
+
readonly newChat: "plusCircle";
|
|
116
|
+
readonly node: "vectorTriangle";
|
|
117
|
+
readonly offline: "wifiSlash";
|
|
118
|
+
readonly online: "wifi";
|
|
119
|
+
readonly pagesSelect: "documentsCheck";
|
|
120
|
+
readonly pinFilled: "pinFill";
|
|
121
|
+
readonly pipeBreaks: "lineBreak";
|
|
122
|
+
readonly pipeNoBreaks: "lineBreakSlash";
|
|
123
|
+
readonly playFilled: "play";
|
|
124
|
+
readonly plusInCircle: "plusCircle";
|
|
125
|
+
readonly plusInCircleFilled: "plusCircle";
|
|
126
|
+
readonly plusInSquare: "plusSquare";
|
|
127
|
+
readonly popout: "external";
|
|
128
|
+
readonly productRobot: "productAgent";
|
|
129
|
+
readonly push: "send";
|
|
130
|
+
readonly returnKey: "return";
|
|
131
|
+
readonly search: "magnify";
|
|
132
|
+
readonly securitySignal: "radar";
|
|
133
|
+
readonly starEmpty: "star";
|
|
134
|
+
readonly starFilled: "starFill";
|
|
135
|
+
readonly starFilledSpace: "starFillSpace";
|
|
136
|
+
readonly starMinusFilled: "starMinusFill";
|
|
137
|
+
readonly starPlusFilled: "starPlusFill";
|
|
138
|
+
readonly stopFilled: "stopFill";
|
|
139
|
+
readonly streamsClassic: "productStreamsClassic";
|
|
140
|
+
readonly streamsWired: "productStreamsWired";
|
|
141
|
+
readonly submodule: "merge";
|
|
142
|
+
readonly tableDensityCompact: "tableDensityHigh";
|
|
143
|
+
readonly tableDensityExpanded: "tableDensityLow";
|
|
144
|
+
readonly tableDensityNormal: "table";
|
|
145
|
+
readonly temperature: "thermometer";
|
|
146
|
+
readonly timeRefresh: "refreshTime";
|
|
147
|
+
readonly timelineWithArrow: "timelinePointer";
|
|
148
|
+
readonly timeslider: "clockControl";
|
|
149
|
+
readonly tokenDenseVector: "tokenVectorDense";
|
|
150
|
+
readonly training: "presentation";
|
|
151
|
+
readonly unlink: "linkSlash";
|
|
152
|
+
readonly userAvatar: "user";
|
|
153
|
+
readonly vector: "vectorSquare";
|
|
154
|
+
readonly visArea: "chartArea";
|
|
155
|
+
readonly visAreaStacked: "chartAreaStack";
|
|
156
|
+
readonly visBarHorizontal: "chartBarHorizontal";
|
|
157
|
+
readonly visBarHorizontalStacked: "chartBarHorizontalStack";
|
|
158
|
+
readonly visBarVertical: "chartBarVertical";
|
|
159
|
+
readonly visBarVerticalStacked: "chartBarVerticalStack";
|
|
160
|
+
readonly visGauge: "chartGauge";
|
|
161
|
+
readonly visLine: "chartLine";
|
|
162
|
+
readonly visMapCoordinate: "waypoint";
|
|
163
|
+
readonly visMapRegion: "map";
|
|
164
|
+
readonly visMetric: "chartMetric";
|
|
165
|
+
readonly visPie: "chartPie";
|
|
166
|
+
readonly visTable: "table";
|
|
167
|
+
readonly visTagCloud: "chartTagCloud";
|
|
168
|
+
readonly visText: "text";
|
|
169
|
+
readonly visVega: "code";
|
|
170
|
+
readonly warningFilled: "warningFill";
|
|
171
|
+
};
|
|
172
|
+
export declare const DEPRECATED_ICONS_WITHOUT_REPLACEMENT: ReadonlySet<string>;
|
|
173
|
+
export declare const NoDeprecatedIconAliases: ESLintUtils.RuleModule<"deprecatedIcon" | "deprecatedIconAlias", [], unknown, ESLintUtils.RuleListener>;
|
|
174
|
+
//# sourceMappingURL=no_deprecated_icon_aliases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no_deprecated_icon_aliases.d.ts","sourceRoot":"","sources":["../../../src/rules/no_deprecated_icon_aliases.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAEjE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyK1B,CAAC;AAEX,eAAO,MAAM,oCAAoC,EAAE,WAAW,CAAC,MAAM,CAChD,CAAC;AAwEtB,eAAO,MAAM,uBAAuB,yGAyGlC,CAAC"}
|