Skip to content

Commit

Permalink
Add more react rules
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Oct 31, 2017
1 parent 962af60 commit 5bf9427
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .eslintrc.js
Expand Up @@ -55,8 +55,11 @@ module.exports = {
'promise/no-return-in-finally': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'off',
'react/jsx-indent': ['error', 2],
'react/jsx-closing-tag-location': 'error',
'react/jsx-curly-brace-presence': ['error', 'never'],
'react/jsx-curly-spacing': ['error', 'never'],
'react/jsx-indent-props': ['error', 2],
'react/jsx-indent': ['error', 2],
'react/jsx-key': 'error',
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-duplicate-props': 'error',
Expand All @@ -70,7 +73,9 @@ module.exports = {
'react/no-direct-mutation-state': 'error',
'react/no-find-dom-node': 'error',
'react/no-is-mounted': 'error',
'react/no-redundant-should-component-update': 'error',
'react/no-string-refs': 'error',
'react/no-typos': 'error',
'react/no-unescaped-entities': 'error',
'react/no-unknown-property': ['error', {ignore: ['for']}],
'react/no-will-update-set-state': 'error',
Expand Down

0 comments on commit 5bf9427

Please sign in to comment.