Skip to content

Commit

Permalink
fix(eslint-config, eslint-config-react): off class-methods-use-this a…
Browse files Browse the repository at this point in the history
…nd react/state-in-constructor rules (#56)

Co-authored-by: o.drapeza <o.drapeza@tinkoff.ru>
  • Loading branch information
SuperOleg39 and o.drapeza committed Jul 20, 2020
1 parent c221a33 commit fae2041
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/eslint-config-react/index.js
Expand Up @@ -50,6 +50,7 @@ module.exports = {
'react/default-props-match-prop-types': 'warn',
'react/require-default-props': 'off', // default values in props destructuring is not supported
'react/static-property-placement': ['error', 'static public field'],
'react/state-in-constructor': 'off',

'react/sort-comp': [
'off',
Expand Down Expand Up @@ -118,7 +119,7 @@ module.exports = {
'jsx-a11y/anchor-is-valid': 'warn',
'jsx-a11y/click-events-have-key-events': 'warn',
'jsx-a11y/mouse-events-have-key-events': 'warn',
'class-methods-use-this': 'warn',
'class-methods-use-this': 'off',
'react/jsx-props-no-spreading': 'warn',
'no-underscore-dangle': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/internal/base.js
Expand Up @@ -33,7 +33,7 @@ module.exports = {
],
'func-name-matching': 'warn',
'global-require': 'off',
'class-methods-use-this': 'warn',
'class-methods-use-this': 'off',
'no-continue': 'off',
'no-restricted-syntax': 'warn',
'default-case': 'warn',
Expand Down

0 comments on commit fae2041

Please sign in to comment.