@lvce-editor/eslint-plugin-e2e 18.10.0 → 18.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -186,7 +186,13 @@ const isTsNonNullExpression = node => {
|
|
|
186
186
|
return typeof node === 'object' && node !== null && 'type' in node && node.type === 'TSNonNullExpression' && 'expression' in node;
|
|
187
187
|
};
|
|
188
188
|
const isLocatorCall = node => {
|
|
189
|
-
|
|
189
|
+
if (!isCallExpressionNode$2(node)) {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
if (isIdentifierNode$3(node.callee)) {
|
|
193
|
+
return node.callee.name === 'Locator';
|
|
194
|
+
}
|
|
195
|
+
return isMemberExpressionNode$2(node.callee) && !node.callee.computed && isIdentifierNode$3(node.callee.property) && node.callee.property.name === 'locator';
|
|
190
196
|
};
|
|
191
197
|
const containsInlineLocatorCall = node => {
|
|
192
198
|
if (!node) {
|