-
Notifications
You must be signed in to change notification settings - Fork 3
/
eslintJestConfig.json
46 lines (46 loc) · 1.12 KB
/
eslintJestConfig.json
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
{
"plugins": ["eslint-plugin-jest", "eslint-plugin-jest-dom", "eslint-plugin-jest-formatting"],
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-dom/recommended",
"plugin:jest-formatting/recommended",
"./eslintBaseConfig.json",
"eslint-config-prettier"
],
"env": {
"browser": false,
"jest": true,
"jest/globals": true,
"node": false
},
"rules": {
"jest/consistent-test-it": [
"error",
{
"fn": "it"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.{spec,test}.{cjs,cts,js,jsx,mjs,mts,ts,tsx}",
"test/**",
"tests/**",
"spec/**",
"**/__tests__/**",
"**/__mocks__/**"
]
}
],
"jest/no-duplicate-hooks": "error",
"jest/prefer-equality-matcher": "error",
"jest/prefer-hooks-in-order": "error",
"jest/prefer-hooks-on-top": "error",
"jest/prefer-strict-equal": "error",
"jest/prefer-to-be": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "error"
}
}