-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.js
29 lines (28 loc) · 935 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
27
28
29
// https://github.com/kentcdodds/eslint-config-kentcdodds/blob/main/jest.js
// https://github.com/jest-community/eslint-plugin-jest
module.exports = {
extends: ["plugin:jest/recommended"],
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-title": "error",
"jest/valid-expect-in-promise": "error",
"jest/consistent-test-it": "off",
"jest/no-jasmine-globals": "off",
"jest/no-done-callback": "off",
"jest/expect-expect": "off",
"jest/prefer-todo": "warn",
},
env: {
"jest/globals": true,
},
};