File tree 5 files changed +16
-6
lines changed
eslint-config-airbnb-base
5 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -3451,7 +3451,7 @@ Other Style Guides
3451
3451
this .firstName = ' Panda' ;
3452
3452
3453
3453
// good, in environments where WeakMaps are available
3454
- // see https://compat-table.github.io/compat-table/es6/ -> Built-ins -> WeakMap
3454
+ // see https://compat-table.github.io/compat-table/es6/#test- WeakMap
3455
3455
const firstNames = new WeakMap ();
3456
3456
firstNames .set (this , ' Panda' );
3457
3457
` ` `
Original file line number Diff line number Diff line change 77
77
"eslint-plugin-import" : " ^2.29.1" ,
78
78
"in-publish" : " ^2.0.1" ,
79
79
"safe-publish-latest" : " ^2.0.0" ,
80
- "tape" : " ^5.7.4 "
80
+ "tape" : " ^5.7.5 "
81
81
},
82
82
"peerDependencies" : {
83
83
"eslint" : " ^7.32.0 || ^8.2.0" ,
Original file line number Diff line number Diff line change 77
77
"eslint-find-rules" : " ^4.1.0" ,
78
78
"eslint-plugin-import" : " ^2.29.1" ,
79
79
"eslint-plugin-jsx-a11y" : " ^6.8.0" ,
80
- "eslint-plugin-react" : " ^7.33.2 " ,
80
+ "eslint-plugin-react" : " ^7.34.1 " ,
81
81
"eslint-plugin-react-hooks" : " ^4.6.0" ,
82
82
"in-publish" : " ^2.0.1" ,
83
83
"react" : " >= 0.13.0" ,
84
84
"safe-publish-latest" : " ^2.0.0" ,
85
- "tape" : " ^5.7.4 "
85
+ "tape" : " ^5.7.5 "
86
86
},
87
87
"peerDependencies" : {
88
88
"eslint" : " ^7.32.0 || ^8.2.0" ,
89
89
"eslint-plugin-import" : " ^2.29.1" ,
90
90
"eslint-plugin-jsx-a11y" : " ^6.8.0" ,
91
- "eslint-plugin-react" : " ^7.33.2 " ,
91
+ "eslint-plugin-react" : " ^7.34.1 " ,
92
92
"eslint-plugin-react-hooks" : " ^4.6.0"
93
93
},
94
94
"engines" : {
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ module.exports = {
192
192
'jsx-a11y/no-noninteractive-tabindex' : [ 'error' , {
193
193
tags : [ ] ,
194
194
roles : [ 'tabpanel' ] ,
195
+ allowExpressionValues : true ,
195
196
} ] ,
196
197
197
198
// require onBlur instead of onChange
@@ -200,7 +201,9 @@ module.exports = {
200
201
201
202
// ensure HTML elements do not specify redundant ARIA roles
202
203
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-redundant-roles.md
203
- 'jsx-a11y/no-redundant-roles' : 'error' ,
204
+ 'jsx-a11y/no-redundant-roles' : [ 'error' , {
205
+ nav : [ 'navigation' ] ,
206
+ } ] ,
204
207
205
208
// Enforce that DOM elements without semantic behavior not have interaction handlers
206
209
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ module.exports = {
46
46
] ,
47
47
} ] ,
48
48
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
+
49
56
// Prevent missing displayName in a React component definition
50
57
// https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/display-name.md
51
58
'react/display-name' : [ 'off' , { ignoreTranspilerName : false } ] ,
You can’t perform that action at this time.
0 commit comments