mirror of
https://github.com/desktop/desktop
synced 2024-08-27 12:11:00 +00:00
Warn for eslint-plugin-primer-react errors
This commit is contained in:
parent
5789f564d0
commit
f5ff47daed
|
@ -30,6 +30,40 @@ rules:
|
||||||
###########
|
###########
|
||||||
# PLUGINS #
|
# 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
|
||||||
'@typescript-eslint/naming-convention':
|
'@typescript-eslint/naming-convention':
|
||||||
- error
|
- error
|
||||||
|
|
Loading…
Reference in a new issue