From 8eb0db9666f6c3de34fdbc69aef3b8980ad7c11c Mon Sep 17 00:00:00 2001 From: Viktor Yakubiv Date: Fri, 29 Nov 2019 15:33:54 +0200 Subject: [PATCH 1/2] Fix react/state-in-constructor --- packages/eslint-config-react/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-react/index.js b/packages/eslint-config-react/index.js index 0e636a6..c317130 100644 --- a/packages/eslint-config-react/index.js +++ b/packages/eslint-config-react/index.js @@ -9,5 +9,6 @@ module.exports = { ignore: ['children', 'class', 'className', 'id', 'tag'], }, ], + 'react/state-in-constructor': ['error', 'never'], }, } From fd0684a83fee7cc2256721f839a459293421f9ec Mon Sep 17 00:00:00 2001 From: Viktor Yakubiv Date: Fri, 29 Nov 2019 15:34:23 +0200 Subject: [PATCH 2/2] Disable react/jsx-props-no-spreading --- packages/eslint-config-react/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-react/index.js b/packages/eslint-config-react/index.js index c317130..328ab73 100644 --- a/packages/eslint-config-react/index.js +++ b/packages/eslint-config-react/index.js @@ -2,6 +2,7 @@ module.exports = { extends: ['airbnb', '@oacore/eslint-config-base', 'prettier/react'], rules: { + 'react/jsx-props-no-spreading': 'off', 'react/prop-types': [ 'error', {