mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-10 18:58:03 -05:00
[eslint config] [patch] jsx-a11y/no-redundant-roles: allow nav to have navigation role
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user