Skip to content

write a config for components with similar rules #51

Open
@aubreyquinn

Description

@aubreyquinn

Many components share the same accessibility rules such as TextArea and Input. It would be great to make a config like an array and to have the rules generic and could be applied to the list of component names in the config file. e.g. https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/src/rules/alt-text.js ```
const DEFAULT_ELEMENTS = [
'img',
'object',
'area',
'input[type="image"]',
];

Would be better if this config was user-configurable because of component name changes. E.g. in their eslintrc file:     ```
"@microsoft/fluentui-jsx-a11y/image-button-missing-aria-v9": ["error", coverComponents:             : [
              'button',
              'checkbox',
              'link',
              'searchbox',
              'spinbutton',
              'switch',
              'textbox',
            ],] 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions