This repository has been archived by the owner on Nov 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.js
52 lines (52 loc) · 2.2 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
'plugins': [
'jest',
'jest-formatting',
],
'rules': {
'jest-formatting/padding-around-after-all-blocks': 'error',
'jest-formatting/padding-around-after-each-blocks': 'error',
'jest-formatting/padding-around-before-all-blocks': 'error',
'jest-formatting/padding-around-before-each-blocks': 'error',
'jest-formatting/padding-around-describe-blocks': 'error',
'jest-formatting/padding-around-expect-groups': 'error',
'jest-formatting/padding-around-test-blocks': 'error',
'jest/consistent-test-it': 'error',
'jest/expect-expect': 'error',
'jest/max-nested-describe': ['error', { 'max': 2 }],
'jest/no-commented-out-tests': 'error',
'jest/no-conditional-expect': 'error',
'jest/no-deprecated-functions': 'error',
'jest/no-disabled-tests': 'error',
'jest/no-done-callback': 'error',
'jest/no-duplicate-hooks': 'error',
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-if': 'error',
'jest/no-interpolation-in-snapshots': 'error',
'jest/no-large-snapshots': ['warn', { 'maxSize': 500 }],
'jest/no-standalone-expect': 'error',
'jest/no-test-prefixes': 'error',
'jest/no-test-return-statement': 'error',
'jest/prefer-called-with': 'error',
'jest/prefer-comparison-matcher': 'error',
'jest/prefer-each': 'error',
'jest/prefer-equality-matcher': 'error',
'jest/prefer-expect-resolves': 'error',
'jest/prefer-hooks-in-order': 'error',
'jest/prefer-hooks-on-top': 'error',
'jest/prefer-strict-equal': 'error',
'jest/prefer-to-be': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
'jest/prefer-todo': 'error',
'jest/require-hook': 'error',
'jest/require-to-throw-message': 'error',
'jest/require-top-level-describe': 'error',
'jest/valid-describe-callback': 'error',
'jest/valid-expect': 'error',
'jest/valid-expect-in-promise': 'error',
'jest/valid-title': 'error',
},
}