You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,41 @@ TODO: Then configure the rules you want to use under the rules section.
36
36
```json
37
37
{
38
38
"rules": {
39
-
"testing-library/rule-name": 2
39
+
"testing-library/await-async-query": "warn",
40
+
"testing-library/no-await-sync-query": "error"
40
41
}
41
42
}
42
43
```
43
44
45
+
## Shareable configurations
46
+
47
+
### Recommended
48
+
49
+
This plugin exports a recommended configuration that enforces good Testing Library practices.
50
+
51
+
To enable this configuration use the `extends` property in your `.eslintrc` config file:
52
+
53
+
```json
54
+
{
55
+
"extends": ["plugin:testing-library/recommended"]
56
+
}
57
+
```
58
+
59
+
### All
60
+
61
+
If you want to enable all rules instead of only some you can do so by adding the `all` configuration to your `.eslintrc` config file:
62
+
63
+
```json
64
+
{
65
+
"extends": ["plugin:testing-library/all"]
66
+
}
67
+
```
68
+
69
+
While the `recommended` configuration only change in major versions, the `all` configuration may change in any release and is thus unsuited for installations requiring long-term consistency.
0 commit comments