Skip to content

Commit 1141a58

Browse files
matthargettthymikee
authored andcommitted
feat: Narrow react/no-multi-comp rule (#51)
* Dsiable react/no-multi-comp rule Discussed in #50. * Only disable for stateless components
1 parent c655825 commit 1141a58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ module.exports = {
2424
},
2525
rules: {
2626
'promise/prefer-await-to-then': WARNING,
27-
'react/prop-types': OFF,
2827
'react/display-name': OFF,
28+
'react/no-multi-comp': [WARNING, { "ignoreStateless": true }],
29+
'react/prop-types': OFF,
2930
'react-native/no-unused-styles': ERROR,
3031
'react-native/split-platform-components': OFF,
3132
'react-native/no-inline-styles': WARNING,

0 commit comments

Comments
 (0)