forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.js
63 lines (63 loc) · 1.72 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
53
54
55
56
57
58
59
60
61
62
63
module.exports.recommended = {
plugins: [
{
jest: require('eslint-plugin-jest'),
},
],
rules: {
'jest/consistent-test-it': 2,
'jest/expect-expect': 2,
'jest/max-nested-describe': [
2,
{
max: 5,
},
],
'jest/no-alias-methods': 2,
'jest/no-commented-out-tests': 2,
'jest/no-conditional-expect': 2,
'jest/no-conditional-in-test': 2,
'jest/no-deprecated-functions': 2,
'jest/no-disabled-tests': 1,
'jest/no-done-callback': 2,
'jest/no-duplicate-hooks': 2,
'jest/no-export': 2,
'jest/no-focused-tests': 2,
'jest/no-hooks': 0,
'jest/no-identical-title': 2,
'jest/no-interpolation-in-snapshots': 2,
'jest/no-jasmine-globals': 2,
'jest/no-large-snapshots': 0,
'jest/no-mocks-import': 2,
'jest/no-restricted-matchers': 0,
'jest/no-standalone-expect': 2,
'jest/no-test-prefixes': 2,
'jest/no-test-return-statement': 2,
'jest/prefer-called-with': 2,
'jest/prefer-comparison-matcher': 2,
'jest/prefer-expect-assertions': [
2,
{
onlyFunctionsWithAsyncKeyword: true,
},
],
'jest/prefer-expect-resolves': 2,
'jest/prefer-hooks-on-top': 2,
'jest/prefer-lowercase-title': 0,
'jest/prefer-snapshot-hint': 2,
'jest/prefer-spy-on': 2,
'jest/prefer-strict-equal': 0,
'jest/prefer-to-be': 2,
'jest/prefer-to-contain': 2,
'jest/prefer-to-have-length': 2,
'jest/prefer-todo': 2,
'jest/require-hook': 0,
'jest/require-to-throw-message': 2,
'jest/require-top-level-describe': 2,
'jest/unbound-method': 0,
'jest/valid-describe-callback': 2,
'jest/valid-expect': 2,
'jest/valid-expect-in-promise': 2,
'jest/valid-title': 2,
},
};