@pobammer-ts/eslint-cease-nonsense-rules 1.5.1 → 1.5.2
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/build-metadata.json +3 -3
- package/dist/index.js +6 -5
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build-metadata.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -20249,14 +20249,15 @@ function collectCaptures(node, sourceCode) {
|
|
|
20249
20249
|
function parseDependencies(node, sourceCode) {
|
|
20250
20250
|
const dependencies4 = new Array;
|
|
20251
20251
|
for (const element of node.elements) {
|
|
20252
|
-
if (!element
|
|
20252
|
+
if (!element)
|
|
20253
20253
|
continue;
|
|
20254
|
-
const
|
|
20255
|
-
const
|
|
20254
|
+
const actualNode = element.type === TSESTree9.AST_NODE_TYPES.SpreadElement ? element.argument : element;
|
|
20255
|
+
const name = nodeToDependencyString(actualNode, sourceCode);
|
|
20256
|
+
const depth = getMemberExpressionDepth(actualNode);
|
|
20256
20257
|
dependencies4.push({
|
|
20257
20258
|
depth,
|
|
20258
20259
|
name,
|
|
20259
|
-
node:
|
|
20260
|
+
node: actualNode
|
|
20260
20261
|
});
|
|
20261
20262
|
}
|
|
20262
20263
|
return dependencies4;
|
|
@@ -21061,4 +21062,4 @@ export {
|
|
|
21061
21062
|
createBanInstancesOptions
|
|
21062
21063
|
};
|
|
21063
21064
|
|
|
21064
|
-
//# debugId=
|
|
21065
|
+
//# debugId=EA151AE69FFBBA3C64756E2164756E21
|