Skip to content

Commit

Permalink
Add option to the react/boolean-prop-naming rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 6, 2019
1 parent 7ee855e commit 9c5f070
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ module.exports = {
}
},
rules: {
'react/boolean-prop-naming': 'error',
'react/boolean-prop-naming': [
'error',
{
validateNested: true
}
],
'react/button-has-type': 'error',
'react/jsx-child-element-spacing': 'error',
'react/default-props-match-prop-types': 'error',
Expand Down

0 comments on commit 9c5f070

Please sign in to comment.