-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
38 lines (38 loc) · 1018 Bytes
/
.eslintrc.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
{
"root": true,
"extends": ["next/core-web-vitals"],
"plugins": ["testing-library"],
"overrides": [
// Only uses React Testing Library lint rules in UNIT test files
// Unit tests have ".test." in the file name
// E2E tests have ".spec." in the file name
{
"files": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(test).[jt]s?(x)"
],
"extends": ["plugin:testing-library/react"],
"rules": {
"testing-library/no-await-sync-events": ["error", { "eventModules": ["fire-event"] }],
"testing-library/await-async-events": ["error", { "eventModule": "userEvent" }]
}
},
{
"files": [
"**/?(*.)+(spec).[jt]s"
],
"rules": {
"react-hooks/rules-of-hooks": "off"
}
},
{
"files": ["**/*.yaml", "**/*.yml"],
"parser": "yaml-eslint-parser",
"extends": ["plugin:yml/standard"]
}
],
"rules": {
"semi": ["error", "always"],
"max-len": ["warn", { "code": 100 }]
}
}