Skip to content

Commit

Permalink
style: use full names
Browse files Browse the repository at this point in the history
(I wonder why eslint didn't pick up on this as there's a rule for that 🤷)
  • Loading branch information
sverweij authored Nov 24, 2023
1 parent 8bfe2b5 commit ef18b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extract/ast-extractors/extract-typescript-deps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function isTypeOnlyImport(pStatement) {
(pStatement.importClause.namedBindings &&
pStatement.importClause.namedBindings.elements &&
pStatement.importClause.namedBindings.elements.every(
(pE) => pE.isTypeOnly,
(pElement) => pElement.isTypeOnly,
)))
);
}
Expand All @@ -32,7 +32,7 @@ function isTypeOnlyExport(pStatement) {
// named reexports are per-element though
(pStatement.exportClause &&
pStatement.exportClause.elements &&
pStatement.exportClause.elements.every((pE) => pE.isTypeOnly))
pStatement.exportClause.elements.every((pElement) => pElement.isTypeOnly))
);
}

Expand Down

0 comments on commit ef18b2e

Please sign in to comment.