Skip to content

Commit 376608e

Browse files
committed
Add plugin configs
1 parent f81409d commit 376608e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add `testing-library` to the plugins section of your `.eslintrc` configuration f
3131
```
3232

3333

34-
Then configure the rules you want to use under the rules section.
34+
TODO: Then configure the rules you want to use under the rules section.
3535

3636
```json
3737
{

lib/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,17 @@ const rules = requireIndex(path.join(__dirname, '/rules'));
66

77
module.exports = {
88
rules,
9+
configs: {
10+
all: {
11+
plugins: ['testing-library'],
12+
rules,
13+
},
14+
recommended: {
15+
plugins: ['testing-library'],
16+
rules: {
17+
'testing-library/await-async-query': 'warn',
18+
'testing-library/no-await-sync-query': 'warn',
19+
},
20+
},
21+
},
922
};

0 commit comments

Comments
 (0)