Skip to content

Commit f151399

Browse files
authored
Fix undefined length error in prop-value-shape rule (#1348)
1 parent a19545f commit f151399

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eslint-rules/lib/rules/prop-value-shape-deprecation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ module.exports = {
141141
}
142142
}
143143

144-
function checkAttributeProperties(attributeProperties, attributeName, deprecation, node) {
144+
function checkAttributeProperties(attributeProperties = [], attributeName, deprecation, node) {
145145
for (let i = 0; i < attributeProperties.length; i++) {
146146
const propertyType = _.get(attributeProperties[i], 'type');
147147
if (propertyType === 'ExperimentalSpreadProperty') {

eslint-rules/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-uilib",
3-
"version": "2.0.7",
3+
"version": "2.0.8",
44
"description": "uilib set of eslint rules",
55
"keywords": [
66
"eslint",

0 commit comments

Comments
 (0)