Skip to content

Commit

Permalink
Fix nodejs 4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
geraintwhite committed May 19, 2021
1 parent 34bdc76 commit 9b316dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
let rank;
if (importEntry.type === 'import:object') {
impType = 'object';
} else if (importEntry.node.importKind === 'type' && !ranks.omittedTypes.includes('type')) {
} else if (importEntry.node.importKind === 'type' && ranks.omittedTypes.indexOf('type') === -1) {
impType = 'type';
} else {
impType = importType(importEntry.value, context);
Expand Down

0 comments on commit 9b316dc

Please sign in to comment.