-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.js
26 lines (26 loc) · 887 Bytes
/
jest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
plugins: ['jest'],
extends: ['plugin:jest/recommended'],
env: { 'jest/globals': true },
rules: {
'jest/consistent-test-it': 'error',
'jest/lowercase-name': 'error',
'jest/no-alias-methods': 'error',
'jest/no-duplicate-hooks': 'error',
'jest/no-expect-resolves': 'error',
'jest/no-test-return-statement': 'error',
'jest/no-truthy-falsy': 'error',
'jest/prefer-called-with': 'warn',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-spy-on': 'error',
'jest/prefer-strict-equal': 'error',
'jest/prefer-to-be-null': 'error',
'jest/prefer-to-be-undefined': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
'jest/prefer-todo': 'error',
'jest/require-top-level-describe': 'error',
'jest/require-to-throw-message': 'error',
'jest/valid-title': 'error'
}
}