From 9c77fe1665aeb3207338bbef9bc288b86a4d3765 Mon Sep 17 00:00:00 2001 From: Lucas Parry Date: Fri, 27 May 2016 13:10:39 +1000 Subject: [PATCH] Make no-native work with eslint 2 too --- rules/no-native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/no-native.js b/rules/no-native.js index f5193804..4e31e064 100644 --- a/rules/no-native.js +++ b/rules/no-native.js @@ -31,7 +31,7 @@ module.exports = function (context) { 'Program:exit': function () { var scope = context.getScope() - scope.through.forEach(function (ref) { + scope.implicit.left.forEach(function (ref) { if (ref.identifier.name !== 'Promise') { return }