@esri/eslint-plugin-calcite-components
Advanced tools
Comparing version 2.0.0-next.2 to 2.0.0-next.3
/* | ||
All material copyright ESRI, All Rights Reserved, unless otherwise specified. | ||
See https://github.com/Esri/calcite-design-system/blob/2.0.0-next.2/LICENSE.md for details. | ||
See https://github.com/Esri/calcite-design-system/blob/2.0.0-next.3/LICENSE.md for details. | ||
*/ | ||
@@ -79,5 +79,7 @@ 'use strict'; | ||
function isCreateElement(node) { | ||
return (node?.callee?.type === "MemberExpression" && | ||
node?.callee?.object?.name === "document" && | ||
node?.callee?.property?.name === "createElement" && | ||
return (node.callee?.type === "MemberExpression" && | ||
node.callee?.object?.type === "Identifier" && | ||
node.callee?.object?.name === "document" && | ||
node.callee?.property?.type === "Identifier" && | ||
node.callee?.property?.name === "createElement" && | ||
node.arguments.length >= 1); | ||
@@ -84,0 +86,0 @@ } |
{ | ||
"name": "@esri/eslint-plugin-calcite-components", | ||
"version": "2.0.0-next.2", | ||
"version": "2.0.0-next.3", | ||
"description": "ESLint rules for @esri/calcite-components", | ||
@@ -33,3 +33,3 @@ "repository": { | ||
}, | ||
"gitHead": "6bc1ab0b40851d5731904b768fc7860a6a72b01c" | ||
"gitHead": "436c8d5a67c2d851e835d4ae4f0d664d5205cc71" | ||
} |
10705
190