eslint-plugin-testing-library
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -5,3 +5,8 @@ 'use strict'; | ||
const falsyMatchers = ['toBeNull', 'toBeFalsy']; | ||
const FALSY_MATCHERS = ['toBeNull', 'toBeFalsy']; | ||
const NOT_ALLOWED_NEGATED_MATCHERS = [ | ||
'toBeInTheDocument', | ||
'toBeTruthy', | ||
'toBeDefined', | ||
]; | ||
@@ -38,3 +43,3 @@ module.exports = { | ||
if (!falsyMatchers.includes(negatedMatcher)) { | ||
if (NOT_ALLOWED_NEGATED_MATCHERS.includes(negatedMatcher)) { | ||
return context.report({ | ||
@@ -47,3 +52,3 @@ node, | ||
if (falsyMatchers.includes(matcher)) { | ||
if (FALSY_MATCHERS.includes(matcher)) { | ||
return context.report({ | ||
@@ -50,0 +55,0 @@ node, |
{ | ||
"name": "eslint-plugin-testing-library", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"description": "ESLint rules for Testing Library", | ||
@@ -33,2 +33,3 @@ "keywords": [ | ||
"test:ci": "jest --coverage", | ||
"test:watch": "npm run test:local -- --watch", | ||
"test": "is-ci test:ci test:local", | ||
@@ -35,0 +36,0 @@ "semantic-release": "semantic-release" |
@@ -26,3 +26,3 @@ <div align="center"> | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors-) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-) | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
@@ -192,2 +192,3 @@ | ||
<td align="center"><a href="http://arvigeus.github.com"><img src="https://avatars2.githubusercontent.com/u/4872470?v=4" width="100px;" alt=""/><br /><sub><b>Nikolay Stoynov</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=arvigeus" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://marudor.de"><img src="https://avatars0.githubusercontent.com/u/1881725?v=4" width="100px;" alt=""/><br /><sub><b>marudor</b></sub></a><br /><a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=marudor" title="Code">💻</a> <a href="https://github.com/testing-library/eslint-plugin-testing-library/commits?author=marudor" title="Tests">⚠️</a></td> | ||
</tr> | ||
@@ -194,0 +195,0 @@ </table> |
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
46252
938
200