Skip to content

Commit

Permalink
Disable a few rules that aren't helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek committed Mar 4, 2024
1 parent 08011a1 commit c1e0f90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
11 changes: 1 addition & 10 deletions config/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
rules: {
// Our existing rules
'array-callback-return': 'error',
'curly': ['error', 'multi-line'],
curly: ['error', 'multi-line'],
'getter-return': 'error',
'new-parens': 'error',
'no-array-constructor': 'error',
Expand Down Expand Up @@ -109,15 +109,6 @@ module.exports = {
'no-constant-condition': ['error', { checkLoops: false }],
'no-new-wrappers': 'error',
'no-return-await': 'error',
'no-restricted-globals': [
'error',
{ name: 'setTimeout' },
{ name: 'clearTimeout' },
{ name: 'setInterval' },
{ name: 'clearInterval' },
{ name: 'setImmediate' },
{ name: 'clearImmediate' },
],
'no-throw-literal': 'error',
'no-undef-init': 'error',
'no-var': 'error',
Expand Down
1 change: 1 addition & 0 deletions config/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ module.exports = {
'jsx-a11y/img-redundant-alt': 'error',
'jsx-a11y/lang': 'error',
'jsx-a11y/no-access-key': 'error',
'jsx-a11y/no-autofocus': 'off',
'jsx-a11y/no-redundant-roles': 'error',
'jsx-a11y/role-has-required-aria-props': 'error',
'jsx-a11y/role-supports-aria-props': 'error',
Expand Down
4 changes: 2 additions & 2 deletions config/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ module.exports = {
'jest/no-identical-title': 'error',
'jest/no-interpolation-in-snapshots': 'error',
'jest/no-jasmine-globals': 'error',
// 'jest/no-jest-import': 'error',
'jest/no-mocks-import': 'error',
'jest/valid-describe-callback': 'error',
'jest/valid-expect': 'error',
// Incompatible with Vitest
'jest/valid-expect': 'off',
'jest/valid-expect-in-promise': 'error',

'jest-dom/prefer-checked': 'error',
Expand Down

0 comments on commit c1e0f90

Please sign in to comment.