@wistia/eslint-config 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
// see: https://github.com/testing-library/eslint-plugin-testing-library#supported-rules
|
|
5
5
|
'testing-library/await-async-query': 'error',
|
|
6
6
|
'testing-library/await-async-utils': 'error',
|
|
7
|
-
'testing-library/await-fire-event': '
|
|
7
|
+
'testing-library/await-fire-event': 'off', // vue only
|
|
8
8
|
'testing-library/consistent-data-testid': [
|
|
9
9
|
'error',
|
|
10
10
|
{
|
|
@@ -13,7 +13,14 @@ module.exports = {
|
|
|
13
13
|
testIdAttribute: ['data-testid'],
|
|
14
14
|
},
|
|
15
15
|
],
|
|
16
|
-
|
|
16
|
+
// since `user-event` v14 all its methods are async so we disable reporting them
|
|
17
|
+
// by setting the `eventModules` to just `"fire-event"`
|
|
18
|
+
'testing-library/no-await-sync-events': [
|
|
19
|
+
'error',
|
|
20
|
+
{
|
|
21
|
+
eventModules: ['fire-event'],
|
|
22
|
+
},
|
|
23
|
+
],
|
|
17
24
|
'testing-library/no-await-sync-query': 'error',
|
|
18
25
|
'testing-library/no-container': 'error',
|
|
19
26
|
'testing-library/no-debugging-utils': 'error',
|