Socket
Socket
Sign inDemoInstall

eslint-plugin-jest-formatting

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.4 to 0.0.5

11

lib/rules/padding-describe-blocks.js

@@ -17,3 +17,5 @@ /**

const isDescribe = node =>
node.expression && node.expression.callee.name === "describe";
node.expression &&
node.expression.callee &&
node.expression.callee.name === "describe";

@@ -35,5 +37,10 @@ module.exports = {

create(context) {
const filePath = context && context.getFilename();
const isTest =
filePath.includes("test") ||
filePath.includes("spec") ||
filePath.includes("<input>");
return {
ExpressionStatement(node) {
if (!isDescribe(node)) {
if (!isTest || !isDescribe(node)) {
return;

@@ -40,0 +47,0 @@ }

2

package.json
{
"name": "eslint-plugin-jest-formatting",
"version": "0.0.4",
"version": "0.0.5",
"description": "Formatting rules for test written with jest",

@@ -5,0 +5,0 @@ "keywords": [

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