From 491cac4b0d2ab13cad929516b42e1ac5d9eec7a1 Mon Sep 17 00:00:00 2001 From: Mohamed Akram Date: Thu, 8 Sep 2022 11:47:57 +0400 Subject: [PATCH] Add eslint react context rule --- packages/eslint-config-react-app/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-react-app/index.js b/packages/eslint-config-react-app/index.js index 8272d885553..4bd471d86c1 100644 --- a/packages/eslint-config-react-app/index.js +++ b/packages/eslint-config-react-app/index.js @@ -235,6 +235,7 @@ module.exports = { // https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules 'react/forbid-foreign-prop-types': ['warn', { allowInPropTypes: true }], 'react/jsx-no-comment-textnodes': 'warn', + 'react/jsx-no-constructed-context-values': 'warn', 'react/jsx-no-duplicate-props': 'warn', 'react/jsx-no-target-blank': 'warn', 'react/jsx-no-undef': 'error',