Socket
Socket
Sign inDemoInstall

eslint-plugin-jest-dom

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jest-dom - npm Package Compare versions

Comparing version 3.1.6 to 3.1.7

12

dist/rules/prefer-empty.js

@@ -46,3 +46,3 @@ "use strict";

if (args.value || args.name || args.expressions && args.expressions.length) {
if (isNonEmptyStringOrTemplateLiteral(args)) {
return;

@@ -61,3 +61,3 @@ }

if (args.value || args.name || args.expressions && args.expressions.length) {
if (isNonEmptyStringOrTemplateLiteral(args)) {
return;

@@ -115,2 +115,8 @@ }

exports.create = create;
exports.create = create;
function isNonEmptyStringOrTemplateLiteral(node) {
var _node$quasis, _node$quasis2, _node$quasis$, _node$quasis$$value;
return !(node.type === "Literal" || node.type === "TemplateLiteral") || node.value || node.name || (node == null ? void 0 : (_node$quasis = node.quasis) == null ? void 0 : _node$quasis.length) > 0 && !((node == null ? void 0 : (_node$quasis2 = node.quasis) == null ? void 0 : _node$quasis2.length) === 1 && (node == null ? void 0 : (_node$quasis$ = node.quasis[0]) == null ? void 0 : (_node$quasis$$value = _node$quasis$.value) == null ? void 0 : _node$quasis$$value.raw) === "");
}
{
"name": "eslint-plugin-jest-dom",
"version": "3.1.6",
"version": "3.1.7",
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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