1
0
mirror of https://github.com/desktop/desktop synced 2024-07-07 19:29:36 +00:00

Warn for eslint-plugin-primer-react errors

This commit is contained in:
tidy-dev 2022-08-25 11:39:18 -04:00
parent 5789f564d0
commit f5ff47daed

View File

@ -30,6 +30,40 @@ rules:
###########
# PLUGINS #
###########
# Accessibility
# From: primer-react/recommended
'jsx-a11y/alt-text':
- warn
'jsx-a11y/click-events-have-key-events':
- warn
'jsx-a11y/no-noninteractive-element-interactions':
- warn
'jsx-a11y/no-static-element-interactions':
- warn
'jsx-a11y/no-autofocus':
- warn
'jsx-a11y/no-noninteractive-element-to-interactive-role':
- warn
'jsx-a11y/aria-role':
- warn
'jsx-a11y/aria-activedescendant-has-tabindex':
- warn
'jsx-a11y/mouse-events-have-key-events':
- warn
'jsx-a11y/label-has-associated-control':
- warn
'jsx-a11y/anchor-is-valid':
- warn
'jsx-a11y/iframe-has-title':
- warn
'jsx-a11y/no-noninteractive-tabindex':
- warn
'jsx-a11y/role-supports-aria-props':
- warn
'jsx-a11y/interactive-supports-focus':
- warn
# TYPESCRIPT
'@typescript-eslint/naming-convention':
- error