]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blobdiff - lib/pronto/eslint.rb
add es6 suffix to lint
[github/fretlink/pronto-hlint.git] / 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