Add react/no-unstable-nested-components rule in eslintrc
authorajbura <ajbura@gmail.com>
Sat, 5 Feb 2022 12:19:51 +0000 (17:49 +0530)
committerajbura <ajbura@gmail.com>
Sat, 5 Feb 2022 12:19:51 +0000 (17:49 +0530)
Signed-off-by: ajbura <ajbura@gmail.com>
.eslintrc.js

index 8ad268d3b686499c34790b3cad737cdb1a40ca00..3dd60b58c08b6d6ace067403a2453ea05453b608 100644 (file)
@@ -20,5 +20,9 @@ module.exports = {
   rules: {
     'linebreak-style': 0,
     'no-underscore-dangle': 0,
+    'react/no-unstable-nested-components': [
+      'error',
+      { allowAsProps: true },
+    ],
   },
 };