Skip to content

Commit

Permalink
Enable react/void-dom-elements-no-children rule
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Mar 21, 2017
1 parent 62c1ebc commit c7fd855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/react.js
Expand Up @@ -21,5 +21,8 @@ module.exports = {
// Enforce propTypes declarations alphabetical sorting
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md
'react/sort-prop-types': 'error',
// Prevent void DOM elements from receiving children
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/void-dom-elements-no-children.md
'react/void-dom-elements-no-children': 'error',
},
}

0 comments on commit c7fd855

Please sign in to comment.