New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@groww-tech/eslint-plugin-internal

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@groww-tech/eslint-plugin-internal - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

lib/rules/two-line-above-function.js

@@ -6,3 +6,3 @@ function addNewLine(firstBlockEnd, secondBlockStart) {

function isArrowFunction(node) {
return node.type === "VariableDeclaration" &&
return node.type === "VariableDeclaration" && node.declarations && node.declarations[0] && node.declarations[0].init &&
node.declarations[0].init.type === 'ArrowFunctionExpression';

@@ -38,3 +38,3 @@ }

fix(fixer) {
return fixer.insertTextAfter(body[i - 1], addNewLine(body[i - 1].loc.end.line), body[i].loc.start.line);
return fixer.insertTextAfter(body[i - 1], addNewLine(body[i - 1].loc.end.line, body[i].loc.start.line));
}

@@ -41,0 +41,0 @@ });

{
"name": "@groww-tech/eslint-plugin-internal",
"version": "1.0.0",
"version": "1.0.1",
"description": "ESLint Plugin with customized rules as per requirement and preferences of devs in Groww.",

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

Sorry, the diff of this file is not supported yet

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