Skip to content

Commit

Permalink
[eslint config] [patch] jsx-a11y/no-redundant-roles: allow nav to…
Browse files Browse the repository at this point in the history
… have `navigation` role
  • Loading branch information
ljharb committed Jan 30, 2024
1 parent 09adc22 commit b239920
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/eslint-config-airbnb/rules/react-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ module.exports = {

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

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

0 comments on commit b239920

Please sign in to comment.