Skip to content

Commit

Permalink
fix: Alphabetize jest rules (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Jul 26, 2020
1 parent 84a7959 commit 0e47472
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions jest.js
Expand Up @@ -32,48 +32,48 @@ module.exports = {
hasTestingLibrary ? 'testing-library' : null,
].filter(Boolean),
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/valid-expect': 'error',
'jest/no-alias-methods': 'off',
'jest/no-jest-import': 'error',
'jest/no-large-snapshots': ['warn', {maxSize: 300}],
'jest/no-test-prefixes': 'error',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/valid-describe': 'error',
'jest/valid-expect-in-promise': 'error',
'jest/consistent-test-it': 'off',
'jest/lowercase-name': 'off',
'jest/no-deprecated-functions': 'error',
'jest/no-hooks': 'off',
'jest/no-jasmine-globals': 'off',
'jest/no-test-callback': 'off',
'jest/prefer-expect-assertions': 'off',
'jest/prefer-to-be-null': 'off',
'jest/prefer-to-be-undefined': 'off',
'jest/require-to-throw-message': 'off',
'jest/expect-expect': 'off',
'jest/no-test-return-statement': 'off',
'jest/prefer-inline-snapshots': 'off',
'jest/prefer-strict-equal': 'off',
'jest/prefer-spy-on': 'off',
'jest/prefer-todo': 'warn',
'jest/prefer-called-with': 'error',
'jest/no-truthy-falsy': 'off',
'jest/no-mocks-import': 'error',
'jest/no-conditional-expect': 'error',
'jest/lowercase-name': 'off',
'jest/no-alias-methods': 'off',
'jest/no-commented-out-tests': 'warn',
'jest/no-conditional-expect': 'error',
'jest/no-deprecated-functions': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-duplicate-hooks': 'off',
'jest/no-expect-resolves': 'off',
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-hooks': 'off',
'jest/no-identical-title': 'error',
'jest/no-if': 'error',
'jest/no-jasmine-globals': 'off',
'jest/no-jest-import': 'error',
'jest/no-large-snapshots': ['warn', {maxSize: 300}],
'jest/no-mocks-import': 'error',
'jest/no-restricted-matchers': 'off',
'jest/no-standalone-expect': 'off',
'jest/no-test-callback': 'off',
'jest/no-test-prefixes': 'error',
'jest/no-test-return-statement': 'off',
'jest/no-truthy-falsy': 'off',
'jest/no-try-expect': 'error',
'jest/require-top-level-describe': 'off',
'jest/prefer-called-with': 'error',
'jest/prefer-expect-assertions': 'off',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-inline-snapshots': 'off',
'jest/prefer-spy-on': 'off',
'jest/prefer-strict-equal': 'off',
'jest/prefer-to-be-null': 'off',
'jest/prefer-to-be-undefined': 'off',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/prefer-todo': 'warn',
'jest/require-to-throw-message': 'off',
'jest/require-top-level-describe': 'off',
'jest/valid-describe': 'error',
'jest/valid-expect': 'error',
'jest/valid-expect-in-promise': 'error',
'jest/valid-title': 'warn',

...(hasJestDom
Expand Down

0 comments on commit 0e47472

Please sign in to comment.