Skip to content

Commit

Permalink
check peerDependencies in imports-as-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Jun 5, 2023
1 parent 7469e59 commit c6f10f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/importsAsDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ try {
Object.keys(pkg.devDependencies) :
// istanbul ignore next
[]),
...(pkg.peerDependencies ?
Object.keys(pkg.peerDependencies) :
// istanbul ignore next
[]),
]);
} catch (error) {
/* eslint-disable no-console -- Inform user */
Expand Down

0 comments on commit c6f10f2

Please sign in to comment.