Skip to content

Commit c9d1aef

Browse files
committed
node v4 compatibility
1 parent 855748b commit c9d1aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/order.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function computePathRank(ranks, pathGroups, path, maxPosition) {
314314
function computeRank(context, ranks, name, type, excludedImportTypes) {
315315
const impType = importType(name, context)
316316
let rank
317-
if (!excludedImportTypes.includes(impType)) {
317+
if (excludedImportTypes.indexOf(impType) === -1) {
318318
rank = computePathRank(ranks.groups, ranks.pathGroups, name, ranks.maxPosition)
319319
}
320320
if (!rank) {

0 commit comments

Comments
 (0)