From 287764f3de32de247a053810dc9bae599e5bc5f2 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 17 Jun 2024 20:14:59 +0200 Subject: [PATCH] meta: ignore `require-default-props` lint rule for function components (#5253) --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 416a9a0d33..7a763093ca 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -93,7 +93,7 @@ module.exports = { 'react/prefer-stateless-function': 'error', 'react/require-default-props': ['error', { forbidDefaultForRequired: true, - functions: 'defaultArguments', + functions: 'ignore', }], 'react/sort-comp': 'error', 'react/static-property-placement': 'off',