Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-testing-library

Package Overview
Dependencies
Maintainers
3
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-testing-library - npm Package Compare versions

Comparing version 6.0.0-alpha.3 to 6.0.0-alpha.4

rules/await-async-event.js

5

configs/angular.js

@@ -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',

6

configs/marko.js

@@ -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',

2

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc