@@ -22,6 +22,7 @@ module.exports = {
22
22
extends : [
23
23
'plugin:eslint-plugin-import/recommended' ,
24
24
'plugin:eslint-plugin-import/typescript' ,
25
+ 'eslint-config-airbnb' ,
25
26
'eslint-config-airbnb-typescript' ,
26
27
'eslint-config-prettier' ,
27
28
] ,
@@ -160,8 +161,7 @@ module.exports = {
160
161
'react/state-in-constructor' : 'off' ,
161
162
// stylistic opinion. For conditional assignment we want it outside, otherwise as static
162
163
'react/static-property-placement' : 'off' ,
163
- // Currently not in recommended ruleset but catches real bugs.
164
- 'react/no-unstable-nested-components' : 'error' ,
164
+
165
165
'no-restricted-syntax' : [
166
166
// See https://github.com/eslint/eslint/issues/9192 for why it's needed
167
167
...baseStyleRules [ 'no-restricted-syntax' ] ,
@@ -171,6 +171,15 @@ module.exports = {
171
171
selector : 'ImportDeclaration[source.value="react"] ImportDefaultSpecifier' ,
172
172
} ,
173
173
] ,
174
+
175
+ // We re-export default in many places, remove when https://github.com/airbnb/javascript/issues/2500 gets resolved
176
+ 'no-restricted-exports' : 'off' ,
177
+ // Some of these occurences are deliberate and fixing them will break things in repos that use @monorepo dependency
178
+ 'import/no-relative-packages' : 'off' ,
179
+ // Avoid accidental auto-"fixes" https://github.com/jsx-eslint/eslint-plugin-react/issues/3458
180
+ 'react/no-invalid-html-attribute' : 'off' ,
181
+
182
+ 'react/jsx-no-useless-fragment' : [ 'error' , { allowExpressions : true } ] ,
174
183
} ,
175
184
overrides : [
176
185
{
@@ -355,6 +364,7 @@ module.exports = {
355
364
'react/require-default-props' : 'off' ,
356
365
'react/state-in-constructor' : 'off' ,
357
366
'react/static-property-placement' : 'off' ,
367
+ 'react/function-component-definition' : 'off' ,
358
368
} ,
359
369
} ,
360
370
{
0 commit comments