eslint-plugin-baseui
Advanced tools
Comparing version 9.65.0 to 9.65.1
@@ -103,2 +103,14 @@ /* | ||
}, | ||
// Modal - Backdrop | ||
// Regression: object spread in overrides | ||
{ | ||
code: ` | ||
import {Modal as BaseModal} from "baseui/modal" | ||
const overrides = { Backdrop: {}} | ||
export default function(props) { | ||
return <BaseModal overrides={{ ...overrides }} /> | ||
} | ||
`, | ||
}, | ||
], | ||
@@ -105,0 +117,0 @@ invalid: [ |
{ | ||
"name": "eslint-plugin-baseui", | ||
"version": "9.65.0", | ||
"version": "9.65.1", | ||
"description": "ESLint rules for Base Web", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -286,3 +286,6 @@ /* | ||
const property = node.parent.value.expression.properties.find( | ||
property => property.key.name === 'Backdrop', | ||
property => | ||
property.key && | ||
property.key.name && | ||
property.key.name === 'Backdrop', | ||
); | ||
@@ -289,0 +292,0 @@ if (property) { |
69581
2322