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

eslint-plugin-sorting

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-sorting - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

lib/rules/sort-object-props.js

@@ -96,3 +96,3 @@ "use strict";

return node.properties.some(function(p) {
return p.value.type === "FunctionExpression" || p.value.type === "ArrowFunctionExpression";
return !p.value || p.value.type === "FunctionExpression" || p.value.type === "ArrowFunctionExpression";
});

@@ -99,0 +99,0 @@ }

{
"name": "eslint-plugin-sorting",
"version": "0.4.0",
"version": "0.4.1",
"description": "Sorting rules for eslint",

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

@@ -78,3 +78,3 @@ "use strict";

transpile("var withMethodSiblings = { c: 1, b: 2, a: function() {} }", [ { ignoreMethodSiblings: true } ]),
transpile("var withMethodSiblings = { c: 1, b: 2, a: () => {} }", [ { ignoreMethodSiblings: true } ]),
transpile("var withMethodSiblings = { ...d, c: 1, b: 2, a: () => {} }", [ { ignoreMethodSiblings: true } ]),
transpile("var withMethodSiblings = { c: 1, b: 2, a() {} }", [ { ignoreMethodSiblings: true } ])

@@ -81,0 +81,0 @@ ],

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