Skip to content

Commit 932951a

Browse files
committedMar 25, 2024
[eslint config] [deps] update eslint-plugin-react
1 parent 5f019b1 commit 932951a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎packages/eslint-config-airbnb/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"eslint-find-rules": "^4.1.0",
7878
"eslint-plugin-import": "^2.29.1",
7979
"eslint-plugin-jsx-a11y": "^6.8.0",
80-
"eslint-plugin-react": "^7.33.2",
80+
"eslint-plugin-react": "^7.34.1",
8181
"eslint-plugin-react-hooks": "^4.6.0",
8282
"in-publish": "^2.0.1",
8383
"react": ">= 0.13.0",
@@ -88,7 +88,7 @@
8888
"eslint": "^7.32.0 || ^8.2.0",
8989
"eslint-plugin-import": "^2.29.1",
9090
"eslint-plugin-jsx-a11y": "^6.8.0",
91-
"eslint-plugin-react": "^7.33.2",
91+
"eslint-plugin-react": "^7.34.1",
9292
"eslint-plugin-react-hooks": "^4.6.0"
9393
},
9494
"engines": {

‎packages/eslint-config-airbnb/rules/react.js

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ module.exports = {
4646
],
4747
}],
4848

49+
// This rule enforces onChange or readonly attribute for checked property of input elements.
50+
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md
51+
'react/checked-requires-onchange-or-readonly': ['off', {
52+
ignoreMissingProperties: false,
53+
ignoreExclusiveCheckedAttribute: false
54+
}],
55+
4956
// Prevent missing displayName in a React component definition
5057
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/display-name.md
5158
'react/display-name': ['off', { ignoreTranspilerName: false }],

0 commit comments

Comments
 (0)
Failed to load comments.