forked from Tradeshift/eslint-config-tradeshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.js
47 lines (47 loc) · 1.48 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
module.exports = {
plugins: ['jest'],
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-large-snapshots': ['warn', { maxSize: 300 }],
'jest/no-test-prefixes': 'error',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/valid-describe-callback': 'error',
'jest/valid-expect-in-promise': 'error',
'jest/consistent-test-it': 'off',
'jest/lowercase-name': 'off',
'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-tothrow-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/valid-title': 'error',
'jest/no-mocks-import': 'error',
'jest/no-commented-out-tests': 'warn',
'jest/no-duplicate-hooks': 'off',
'jest/no-expect-resolves': 'off',
'jest/no-export': 'error',
'jest/no-if': 'error',
'jest/no-standalone-expect': 'off',
'jest/no-conditional-expect': 'error',
'jest/require-top-level-describe': 'off',
'jest/prefer-hooks-on-top': 'error'
},
env: {
'jest/globals': true
}
};