eslint-plugin-testing-library
Advanced tools
Comparing version 6.0.0-alpha.3 to 6.0.0-alpha.4
@@ -5,2 +5,6 @@ "use strict"; | ||
rules: { | ||
'testing-library/await-async-event': [ | ||
'error', | ||
{ eventModule: 'userEvent' }, | ||
], | ||
'testing-library/await-async-query': 'error', | ||
@@ -12,2 +16,3 @@ 'testing-library/await-async-utils': 'error', | ||
'testing-library/no-dom-import': ['error', 'angular'], | ||
'testing-library/no-global-regexp-flag-in-query': 'error', | ||
'testing-library/no-node-access': 'error', | ||
@@ -14,0 +19,0 @@ 'testing-library/no-promise-in-fire-event': 'error', |
@@ -5,5 +5,10 @@ "use strict"; | ||
rules: { | ||
'testing-library/await-async-event': [ | ||
'error', | ||
{ eventModule: 'userEvent' }, | ||
], | ||
'testing-library/await-async-query': 'error', | ||
'testing-library/await-async-utils': 'error', | ||
'testing-library/no-await-sync-query': 'error', | ||
'testing-library/no-global-regexp-flag-in-query': 'error', | ||
'testing-library/no-promise-in-fire-event': 'error', | ||
@@ -10,0 +15,0 @@ 'testing-library/no-wait-for-empty-callback': 'error', |
@@ -5,5 +5,8 @@ "use strict"; | ||
rules: { | ||
'testing-library/await-async-event': [ | ||
'error', | ||
{ eventModule: ['fireEvent', 'userEvent'] }, | ||
], | ||
'testing-library/await-async-query': 'error', | ||
'testing-library/await-async-utils': 'error', | ||
'testing-library/await-fire-event': 'error', | ||
'testing-library/no-await-sync-query': 'error', | ||
@@ -13,2 +16,3 @@ 'testing-library/no-container': 'error', | ||
'testing-library/no-dom-import': ['error', 'marko'], | ||
'testing-library/no-global-regexp-flag-in-query': 'error', | ||
'testing-library/no-node-access': 'error', | ||
@@ -15,0 +19,0 @@ 'testing-library/no-promise-in-fire-event': 'error', |
@@ -5,2 +5,6 @@ "use strict"; | ||
rules: { | ||
'testing-library/await-async-event': [ | ||
'error', | ||
{ eventModule: 'userEvent' }, | ||
], | ||
'testing-library/await-async-query': 'error', | ||
@@ -12,2 +16,3 @@ 'testing-library/await-async-utils': 'error', | ||
'testing-library/no-dom-import': ['error', 'react'], | ||
'testing-library/no-global-regexp-flag-in-query': 'error', | ||
'testing-library/no-manual-cleanup': 'error', | ||
@@ -14,0 +19,0 @@ 'testing-library/no-node-access': 'error', |
@@ -5,5 +5,8 @@ "use strict"; | ||
rules: { | ||
'testing-library/await-async-event': [ | ||
'error', | ||
{ eventModule: ['fireEvent', 'userEvent'] }, | ||
], | ||
'testing-library/await-async-query': 'error', | ||
'testing-library/await-async-utils': 'error', | ||
'testing-library/await-fire-event': 'error', | ||
'testing-library/no-await-sync-query': 'error', | ||
@@ -13,2 +16,3 @@ 'testing-library/no-container': 'error', | ||
'testing-library/no-dom-import': ['error', 'vue'], | ||
'testing-library/no-global-regexp-flag-in-query': 'error', | ||
'testing-library/no-manual-cleanup': 'error', | ||
@@ -15,0 +19,0 @@ 'testing-library/no-node-access': 'error', |
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "6.0.0-alpha.3", | ||
"version": "6.0.0-alpha.4", | ||
"description": "ESLint rules for Testing Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -209,5 +209,5 @@ <div align="center"> | ||
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- | --- | ---------------------------------------------------------------------------------- | | ||
| [`await-async-event`](./docs/rules/await-async-event.md) | Enforce promises from async event methods are handled | | ![dom-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] | | ||
| [`await-async-query`](./docs/rules/await-async-query.md) | Enforce promises from async queries to be handled | | ![dom-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] | | ||
| [`await-async-utils`](./docs/rules/await-async-utils.md) | Enforce promises from async utils to be awaited properly | | ![dom-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] | | ||
| [`await-fire-event`](./docs/rules/await-fire-event.md) | Enforce promises from `fireEvent` methods to be handled | | ![vue-badge][] ![marko-badge][] | | ||
| [`consistent-data-testid`](./docs/rules/consistent-data-testid.md) | Ensures consistent usage of `data-testid` | | | | ||
@@ -219,3 +219,3 @@ | [`no-await-sync-events`](./docs/rules/no-await-sync-events.md) | Disallow unnecessary `await` for sync events | | | | ||
| [`no-dom-import`](./docs/rules/no-dom-import.md) | Disallow importing from DOM Testing Library | 🔧 | ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] | | ||
| [`no-global-regexp-flag-in-query`](./docs/rules/no-global-regexp-flag-in-query.md) | Disallow the use of the global RegExp flag (/g) in queries | 🔧 | | | ||
| [`no-global-regexp-flag-in-query`](./docs/rules/no-global-regexp-flag-in-query.md) | Disallow the use of the global RegExp flag (/g) in queries | 🔧 | ![dom-badge][] ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] | | ||
| [`no-manual-cleanup`](./docs/rules/no-manual-cleanup.md) | Disallow the use of `cleanup` | | ![react-badge][] ![vue-badge][] | | ||
@@ -222,0 +222,0 @@ | [`no-node-access`](./docs/rules/no-node-access.md) | Disallow direct Node access | | ![angular-badge][] ![react-badge][] ![vue-badge][] ![marko-badge][] | |
@@ -15,7 +15,7 @@ "use strict"; | ||
recommendedConfig: { | ||
dom: false, | ||
angular: false, | ||
react: false, | ||
vue: false, | ||
marko: false, | ||
dom: 'error', | ||
angular: 'error', | ||
react: 'error', | ||
vue: 'error', | ||
marko: 'error', | ||
}, | ||
@@ -22,0 +22,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
229972
4058