]> git.immae.eu Git - github/fretlink/pronto-hlint.git/commitdiff
add es6 suffix to lint
authorMarkus Doits <markus.doits@stellenticket.de>
Sat, 9 Apr 2016 11:57:40 +0000 (13:57 +0200)
committerMarkus Doits <markus.doits@stellenticket.de>
Sat, 9 Apr 2016 11:57:40 +0000 (13:57 +0200)
lib/pronto/eslint.rb

index b6ccff1fee5f2c17b51393f6b70ce1d59f0b4697..0de31b2148bdea31183a82fac2cc65ca8e832e40 100644 (file)
@@ -30,7 +30,7 @@ module Pronto
     end
 
     def js_file?(path)
-      File.extname(path) == '.js'
+      %w(.js .es6).include? File.extname(path)
     end
   end
 end