Skip to content

Commit

Permalink
chore: Add eslint-plugin-jest (#3301)
Browse files Browse the repository at this point in the history
  • Loading branch information
gethinwebster authored Feb 18, 2025
1 parent 0906374 commit d6733f7
Show file tree
Hide file tree
Showing 41 changed files with 1,447 additions and 1,326 deletions.
13 changes: 11 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
'no-unsanitized',
'header',
'simple-import-sort',
'no-only-tests',
'jest',
],
rules: {
'@typescript-eslint/no-empty-function': 'off',
Expand Down Expand Up @@ -90,7 +90,16 @@ module.exports = {
],
'no-warning-comments': 'warn',
'simple-import-sort/imports': 'error',
'no-only-tests/no-only-tests': 'error',
'jest/no-alias-methods': 'error',
'jest/no-deprecated-functions': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-interpolation-in-snapshots': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-test-prefixes': 'error',
'jest/valid-describe-callback': 'error',
'jest/valid-expect': 'error',
'jest/valid-expect-in-promise': 'error',
},
settings: {
react: {
Expand Down
Loading

0 comments on commit d6733f7

Please sign in to comment.