]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/padding-line-between-statements.js
import 7.12.1 upstream release
[pve-eslint.git] / eslint / lib / rules / padding-line-between-statements.js
index eea19f5ce5811b534e2fd6cf2dd933e41382d88c..c97b9956b7136e9c5997de8526157fb70333878b 100644 (file)
@@ -85,10 +85,10 @@ function newNodeTypeTester(type) {
  */
 function isIIFEStatement(node) {
     if (node.type === "ExpressionStatement") {
-        let call = node.expression;
+        let call = astUtils.skipChainExpression(node.expression);
 
         if (call.type === "UnaryExpression") {
-            call = call.argument;
+            call = astUtils.skipChainExpression(call.argument);
         }
         return call.type === "CallExpression" && astUtils.isFunction(call.callee);
     }