Skip to content

Commit

Permalink
Add option to the react/no-string-refs rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 6, 2019
1 parent 53591d3 commit 8b3a5e9
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 @@ -37,7 +37,12 @@ module.exports = {
'react/no-redundant-should-component-update': 'error',
'react/no-render-return-value': 'error',
'react/no-typos': 'error',
'react/no-string-refs': 'error',
'react/no-string-refs': [
'error',
{
noTemplateLiterals: true
}
],
'react/no-this-in-sfc': 'error',
'react/no-unescaped-entities': 'error',
'react/no-unknown-property': 'error',
Expand Down

0 comments on commit 8b3a5e9

Please sign in to comment.