[eslint config] [patch] jsx-a11y/no-redundant-roles: allow nav to have navigation role

This commit is contained in:
Jordan Harband
2024-01-30 10:59:47 -08:00
parent 09adc22031
commit b23992033c

View File

@@ -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