Skip to content

Commit

Permalink
Add option to the react/jsx-key rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 6, 2019
1 parent c075fa8 commit c9fa2ea
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 @@ -102,7 +102,12 @@ module.exports = {
'error',
'tab'
],
'react/jsx-key': 'error',
'react/jsx-key': [
'error',
{
checkFragmentShorthand: true
}
],
'react/jsx-max-props-per-line': [
'error',
{
Expand Down

0 comments on commit c9fa2ea

Please sign in to comment.