eslint-plugin-testing-library
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -65,5 +65,2 @@ "use strict"; | ||
function reportUnhandledNode({ node, closestCallExpression, messageId = 'awaitAsyncEvent', fix, }) { | ||
if (node.name === USER_EVENT_SETUP_FUNCTION_NAME) { | ||
return; | ||
} | ||
if (!(0, node_utils_1.isPromiseHandled)(node)) { | ||
@@ -98,2 +95,5 @@ context.report({ | ||
} | ||
if (node.name === USER_EVENT_SETUP_FUNCTION_NAME) { | ||
return; | ||
} | ||
const references = (0, node_utils_1.getVariableReferences)(context, closestCallExpression.parent); | ||
@@ -100,0 +100,0 @@ if (references.length === 0) { |
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -428,2 +428,4 @@ <div align="center"> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/adevick"><img src="https://avatars.githubusercontent.com/u/106642175?v=4?s=100" width="100px;" alt="Anthony Devick"/><br /><sub><b>Anthony Devick</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=adevick" title="Code">💻</a> <a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=adevick" title="Tests">⚠️</a> <a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=adevick" title="Documentation">📖</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/maisano"><img src="https://avatars.githubusercontent.com/u/689081?v=4?s=100" width="100px;" alt="Richard Maisano"/><br /><sub><b>Richard Maisano</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=maisano" title="Code">💻</a> <a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=maisano" title="Tests">⚠️</a></td> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/doochik"><img src="https://avatars.githubusercontent.com/u/31961?v=4?s=100" width="100px;" alt="Aleksei Androsov"/><br /><sub><b>Aleksei Androsov</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=doochik" title="Code">💻</a> <a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=doochik" title="Tests">⚠️</a></td> | ||
</tr> | ||
@@ -430,0 +432,0 @@ </tbody> |
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
257222
465