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

eslint-plugin-putout

Package Overview
Dependencies
Maintainers
1
Versions
281
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-putout - npm Package Compare versions

Comparing version 1.4.4 to 1.5.0

6

package.json
{
"name": "eslint-plugin-putout",
"version": "1.4.4",
"version": "1.5.0",
"description": "eslint plagin for putout",

@@ -39,7 +39,7 @@ "release": false,

"devDependencies": {
"eslint": "^5.0.0",
"eslint": "^6.0.0-alpha",
"eslint-plugin-node": "^8.0.1",
"madrun": "^2.0.0",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"nyc": "^14.0.0",
"putout": "*"

@@ -46,0 +46,0 @@ },

@@ -19,4 +19,6 @@ 'use strict';

create(context) {
const {minProperties = 2} = (context.options[0] || {});
return {
'VariableDeclarator[id.type="ObjectPattern"][id.properties.length>2]': (node) => {
[`VariableDeclarator[id.type="ObjectPattern"][id.properties.length>${minProperties}]`]: (node) => {
if (node.parent.parent.type === 'ForOfStatement')

@@ -23,0 +25,0 @@ return;

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