Skip to content

Commit

Permalink
fix: Some rules was unused and don't help with development (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom910 authored Feb 5, 2022
1 parent 6127f5c commit dca2c89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
'react/jsx-handler-names': 'warn',
'react/prop-types': 'warn',
'react/jsx-filename-extension': 'off',
'react/destructuring-assignment': 'warn',
'react/destructuring-assignment': 'off',
'react/jsx-key': 'error',
'react/no-direct-mutation-state': 'error',
'react/default-props-match-prop-types': 'warn',
Expand Down
7 changes: 4 additions & 3 deletions packages/eslint-config/internal/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ module.exports = {
],
'guard-for-in': 'off',
'default-case': 'warn',
'no-plusplus': ['warn', { allowForLoopAfterthoughts: true }],
'no-plusplus': 'off',
'func-names': 'off',
'consistent-return': 'warn',
'vars-on-top': 'warn',
'no-var': 'warn',
Expand All @@ -69,8 +70,8 @@ module.exports = {
allowArrowFunctions: true,
},
],
'max-depth': ['warn', 4],
'max-params': ['warn', 4],
'max-depth': 'off',
'max-params': 'off',
'max-classes-per-file': ['error', 4],
complexity: ['error', 25],
'max-statements': ['error', 25],
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/internal/test-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
'prefer-promise-reject-errors': 'warn',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'@typescript-eslint/no-shadow': 'off',
},
},
],
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ module.exports = {
],
},
],
'jest/no-disabled-tests': 'off',
},
};

0 comments on commit dca2c89

Please sign in to comment.