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.3.0 to 1.3.1

2

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

@@ -5,0 +5,0 @@ "release": false,

@@ -33,3 +33,4 @@ # eslint-plugin-putout

"rules": {
"putout/one-line-destructuring": "error",
"putout/single-property-destructuring": "error",
"putout/multiple-properties-destructuring": "error",
"putout/destructuring-as-function-argument": "error",

@@ -43,5 +44,6 @@ "putout/align-spaces": "error"

- [One line destructuring](rules/one-line-destructuring.md)
- [Single property destructuring](rules/single-property-destructuring.md)
- [Multiple properties destructuring](rules/multiple-properties-destructuring.md)
- [Destructuring as function argument](rules/destructuring-as-function-argument.md)
- [Align spaces](rules/align-spaces.md)

@@ -18,3 +18,3 @@ 'use strict';

return {
'VariableDeclarator[id.type="ObjectPattern"][id.properties.length>1]': (node) => {
'VariableDeclarator[id.type="ObjectPattern"][id.properties.length>2]': (node) => {
const {id} = node;

@@ -21,0 +21,0 @@ const {properties} = id;

@@ -1,4 +0,4 @@

# keep each property on separate lines when using multiple destructuring properties (multiple-properties-destructuring)
# keep each property on separate line when using multiple destructuring properties (multiple-properties-destructuring)
In the same way as eslint [object-property-newline](https://eslint.org/docs/rules/object-property-newline)
In the same way as eslint [object-property-newline](https://eslint.org/docs/rules/object-property-newline), but for destructuring.

@@ -5,0 +5,0 @@ ## Rule Details

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