Skip to content

Commit

Permalink
feat: Narrow react/no-multi-comp rule (#51)
Browse files Browse the repository at this point in the history
* Dsiable  react/no-multi-comp rule

Discussed in #50.

* Only disable for stateless components
  • Loading branch information
matthargett authored and thymikee committed May 11, 2019
1 parent c655825 commit 1141a58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -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,
Expand Down

0 comments on commit 1141a58

Please sign in to comment.