forked from upfrontjs/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
44 lines (43 loc) · 1.22 KB
/
.eslintrc.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
module.exports = {
extends: [
"../.eslintrc.js",
"plugin:jest/all"
],
env: {
browser: true,
es2020: true,
"jest/globals": true
},
plugins: [
"@typescript-eslint",
"jest"
],
rules: {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
// https://www.npmjs.com/package/eslint-plugin-jest#rules
"jest/prefer-expect-assertions": "off",
"jest/no-hooks": "off",
"jest/prefer-called-with": "off",
"jest/valid-title": ["error", {
mustMatch: {
it: '^should '
}
}],
"jest/no-restricted-matchers": [
"error",
{
"toBeFalsy": 'Use toBe(false) instead to avoid unexpected type coercion.',
"toBeTruthy": 'Use toBe(true) instead to avoid unexpected type coercion.',
}
],
"jest/prefer-lowercase-title": [
"error",
{
"ignore": ["describe"]
}
],
"jest/max-expects": "off"
}
}