forked from Byndyusoft/eslint-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.js
26 lines (26 loc) · 929 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 = {
overrides: [
{
files: ['*{spec, test, tests}.*', '**/__tests__/**'],
extends: ['plugin:jest/recommended'],
env: {
'jest/globals': true
},
plugins: ['jest'],
rules: {
// eslint-plugin-jest
'jest/no-duplicate-hooks': 'error',
'jest/no-test-return-statement': 'error',
'jest/prefer-called-with': 'warn',
'jest/prefer-hooks-on-top': 'warn',
'jest/prefer-strict-equal': 'warn',
'jest/prefer-to-be': 'warn',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/prefer-todo': 'warn',
'jest/require-to-throw-message': 'warn',
'jest/require-top-level-describe': 'warn'
}
}
]
};