Skip to content

Commit df53174

Browse files
committed
Update eslint-plugin-jsx-a11y to v6.8.0
1 parent a6983ba commit df53174

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@perfective/eslint-config": "~0.23.0"
3636
},
3737
"peerDependencies": {
38-
"eslint-plugin-jsx-a11y": "^6.7.1",
38+
"eslint-plugin-jsx-a11y": "^6.8.0",
3939
"eslint-plugin-react": "^7.33.2",
4040
"eslint-plugin-react-hooks": "^4.6.0",
4141
"eslint-plugin-react-hooks-ssr": "^0.1.5",

src/rules/jsx-a11y/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export = {
5151
video: [],
5252
track: [],
5353
}],
54-
'jsx-a11y/mouse-events-have-key-events': 'error',
54+
'jsx-a11y/mouse-events-have-key-events': ['error', {
55+
hoverInHandlers: ['onMouseOver'],
56+
hoverOutHandlers: ['onMouseOut'],
57+
}],
5558
'jsx-a11y/no-access-key': 'error',
5659
'jsx-a11y/no-aria-hidden-on-focusable': 'error',
5760
'jsx-a11y/no-autofocus': ['error', {

0 commit comments

Comments
 (0)