eslint-plugin-absolute 0.11.6 → 0.11.7

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2071,6 +2071,22 @@ var visitImmediateReferences = (node, onReference) => {
2071
2071
  case "FunctionExpression":
2072
2072
  case "ArrowFunctionExpression":
2073
2073
  return;
2074
+ case "CallExpression":
2075
+ case "NewExpression": {
2076
+ const runAtInit = (invoked) => {
2077
+ if (!invoked) {
2078
+ return;
2079
+ }
2080
+ if (invoked.type === "FunctionDeclaration" || invoked.type === "FunctionExpression" || invoked.type === "ArrowFunctionExpression") {
2081
+ visit(invoked.body);
2082
+ return;
2083
+ }
2084
+ visit(invoked);
2085
+ };
2086
+ runAtInit(current.callee);
2087
+ current.arguments.forEach(runAtInit);
2088
+ return;
2089
+ }
2074
2090
  case "MemberExpression":
2075
2091
  visit(current.object);
2076
2092
  if (current.computed) {
package/package.json CHANGED
@@ -41,5 +41,5 @@
41
41
  "typecheck": "bun run tsc --noEmit"
42
42
  },
43
43
  "type": "module",
44
- "version": "0.11.6"
44
+ "version": "0.11.7"
45
45
  }