Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/eslint-plugin/changelogs/upcoming/9046.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- exclude `EuiButtonEmpty` from the `no-unnamed-interactive-element` rule.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ ruleTester.run('NoUnnamedInteractiveElement', NoUnnamedInteractiveElement, {
valid: [
// Components with allowed a11y props
{ code: '<EuiBetaBadge aria-label="Beta badge" />', languageOptions },
{ code: '<EuiButtonEmpty aria-labelledby="btnLabel" />', languageOptions },
{ code: '<EuiButtonIcon aria-label="Icon" />', languageOptions },
{ code: '<EuiComboBox aria-label="Combo label" />', languageOptions },
{ code: '<EuiSelect aria-label="Select label" />', languageOptions },
Expand Down Expand Up @@ -73,11 +72,6 @@ ruleTester.run('NoUnnamedInteractiveElement', NoUnnamedInteractiveElement, {
languageOptions,
errors: [{ messageId: 'missingA11y' }],
},
{
code: '<EuiButtonEmpty />',
languageOptions,
errors: [{ messageId: 'missingA11y' }],
},
{
code: '<EuiButtonIcon />',
languageOptions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { hasA11yPropForComponent } from '../../utils/has_a11y_prop_for_component

const interactiveComponents = [
'EuiBetaBadge',
'EuiButtonEmpty',
'EuiButtonIcon',
'EuiComboBox',
'EuiSelect',
Expand Down Expand Up @@ -122,4 +121,4 @@ export const NoUnnamedInteractiveElement = ESLintUtils.RuleCreator.withoutDocs({
},
};
},
});
});