eslint-plugin-crisp
Advanced tools
Comparing version 1.0.23 to 1.0.25
{ | ||
"name": "eslint-plugin-crisp", | ||
"version": "1.0.23", | ||
"version": "1.0.25", | ||
"description": "Custom EsLint Rules for Crisp", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,8 @@ module.exports = { | ||
const nextProperty = properties[index + 1]; | ||
// Ignore non-property values (e.g. spread expressions) | ||
if (property.type !== "Property" || !nextProperty || nextProperty.type !== "Property") { | ||
return; | ||
} | ||
if (property.key.name > nextProperty.key.name) { | ||
@@ -22,0 +28,0 @@ context.report({ |
63407
1834