Skip to content

Commit

Permalink
fix: relax some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Aug 4, 2019
1 parent fa8da7a commit 8ac7495
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = {
'react/no-direct-mutation-state': 'error',
'react/no-find-dom-node': 'error',
'react/no-is-mounted': 'error',
'react/no-multi-comp': ['error', { ignoreStateless: true }],
'react/no-multi-comp': ['off', { ignoreStateless: true }], // too many existing violations :/
'react/no-redundant-should-component-update': 'error',
'react/no-string-refs': 'error',
'react/no-this-in-sfc': 'error',
Expand Down Expand Up @@ -180,7 +180,7 @@ module.exports = {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-object-literal-type-assertion': 'warn',
'@typescript-eslint/no-parameter-properties': 'off',
Expand Down Expand Up @@ -220,9 +220,10 @@ module.exports = {
},
},
{
files: '*.test.ts?(x)',
files: '*.@(test|story).ts?(x)',
rules: {
'react/jsx-no-bind': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
],
Expand Down

0 comments on commit 8ac7495

Please sign in to comment.