Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putout/eslint

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/eslint - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

27

lib/create-plugin/index.js

@@ -6,9 +6,9 @@ 'use strict';

const source = context.sourceCode;
const {filename} = context;
const getText = source.getText.bind(source);
const getCommentsBefore = source.getCommentsBefore.bind(source);
const getCommentsAfter = source.getCommentsAfter.bind(source);
const getCommentsInside = source.getCommentsInside.bind(source);
const {sourceCode, filename} = context;
const getText = sourceCode.getText.bind(sourceCode);
const getCommentsBefore = sourceCode.getCommentsBefore.bind(sourceCode);
const getCommentsAfter = sourceCode.getCommentsAfter.bind(sourceCode);
const getCommentsInside = sourceCode.getCommentsInside.bind(sourceCode);
const getSpacesBeforeNode = createGetSpacesBeforeNode({

@@ -24,4 +24,17 @@ getText,

const result = filter({text, node, options, getText, getCommentsBefore, getCommentsAfter, getCommentsInside, getSpacesBeforeNode, getSpacesAfterNode, filename}, options);
const path = {
text,
node,
options,
getText,
getCommentsBefore,
getCommentsAfter,
getCommentsInside,
getSpacesBeforeNode,
getSpacesAfterNode,
filename,
};
const result = filter(path, options);
if (!result)

@@ -28,0 +41,0 @@ return;

'use strict';
const process = require('process');
const {simpleImport} = require('./simple-import.js');

@@ -4,0 +5,0 @@ const tryToCatch = require('try-to-catch');

{
"name": "@putout/eslint",
"version": "2.3.0",
"version": "2.4.0",
"type": "commonjs",

@@ -44,3 +44,3 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

"eslint-plugin-n": "^16.0.0",
"eslint-plugin-putout": "^19.0.0",
"eslint-plugin-putout": "^20.0.0",
"just-camel-case": "^4.0.2",

@@ -47,0 +47,0 @@ "lerna": "^6.0.1",

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