Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit 13acdb2

Browse files
committed
feat(base): add new eslint-plugin-jest rules
1 parent c5bc4a1 commit 13acdb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/eslint-config/jest.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ module.exports = {
99
'import/no-extraneous-dependencies': 'off',
1010
// https://github.com/jest-community/eslint-plugin-jest
1111
'jest/consistent-test-it': ['error', {fn: 'test', withinDescribe: 'it'}],
12+
'jest/expect-expect': 'error',
1213
'jest/lowercase-name': 'off',
14+
'jest/no-alias-methods': 'error',
1315
'jest/no-disabled-tests': 'warn',
1416
'jest/no-focused-tests': 'error',
1517
'jest/no-hooks': 'off',
@@ -18,11 +20,15 @@ module.exports = {
1820
'jest/no-jest-import': 'error',
1921
'jest/no-large-snapshots': 'off',
2022
'jest/no-test-prefixes': 'error',
23+
'jest/no-test-return-statement': 'error',
2124
'jest/prefer-expect-assertions': 'off',
2225
'jest/prefer-inline-snapshots': 'off',
26+
'jest/prefer-strict-equal': 'error',
2327
'jest/prefer-to-be-null': 'error',
2428
'jest/prefer-to-be-undefined': 'error',
29+
'jest/prefer-to-contain': 'error',
2530
'jest/prefer-to-have-length': 'error',
31+
'jest/require-tothrow-message': 'error',
2632
'jest/valid-describe': 'error',
2733
'jest/valid-expect-in-promise': 'error',
2834
'jest/valid-expect': 'error',

0 commit comments

Comments
 (0)