From 1141a582e6c3889d3679c1647e863148b6f42801 Mon Sep 17 00:00:00 2001 From: Matt Hargett Date: Sat, 11 May 2019 03:42:05 -0700 Subject: [PATCH] feat: Narrow react/no-multi-comp rule (#51) * Dsiable react/no-multi-comp rule Discussed in #50. * Only disable for stateless components --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c91ca40..b439d21 100644 --- a/index.js +++ b/index.js @@ -24,8 +24,9 @@ module.exports = { }, rules: { 'promise/prefer-await-to-then': WARNING, - 'react/prop-types': OFF, 'react/display-name': OFF, + 'react/no-multi-comp': [WARNING, { "ignoreStateless": true }], + 'react/prop-types': OFF, 'react-native/no-unused-styles': ERROR, 'react-native/split-platform-components': OFF, 'react-native/no-inline-styles': WARNING,