eslint-plugin-sorting
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -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 @@ ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13220