Skip to content

Commit b239920

Browse files
committedJan 30, 2024
[eslint config] [patch] jsx-a11y/no-redundant-roles: allow nav to have navigation role
1 parent 09adc22 commit b239920

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎packages/eslint-config-airbnb/rules/react-a11y.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ module.exports = {
201201

202202
// ensure HTML elements do not specify redundant ARIA roles
203203
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md
204-
'jsx-a11y/no-redundant-roles': 'error',
204+
'jsx-a11y/no-redundant-roles': ['error', {
205+
nav: ['navigation'],
206+
}],
205207

206208
// Enforce that DOM elements without semantic behavior not have interaction handlers
207209
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md

0 commit comments

Comments
 (0)
Failed to load comments.