]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/max-lines-per-function.js
update to 7.1.0 sources
[pve-eslint.git] / eslint / lib / rules / max-lines-per-function.js
index 03539fae470078ebb250f7585ca91d98000b7806..aa423a60a1faaa3c6b1dba20cf50d47e7db4d4a9 100644 (file)
@@ -134,7 +134,7 @@ module.exports = {
          * @returns {boolean} True if it's an IIFE
          */
         function isIIFE(node) {
-            return node.type === "FunctionExpression" && node.parent && node.parent.type === "CallExpression" && node.parent.callee === node;
+            return (node.type === "FunctionExpression" || node.type === "ArrowFunctionExpression") && node.parent && node.parent.type === "CallExpression" && node.parent.callee === node;
         }
 
         /**