From: Markus Doits Date: Sat, 9 Apr 2016 11:57:40 +0000 (+0200) Subject: add es6 suffix to lint X-Git-Tag: v0.1.0~52^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=347e6ab774cd401e437450fc93504b78bf90d748;p=github%2Ffretlink%2Fpronto-hlint.git add es6 suffix to lint --- diff --git a/lib/pronto/eslint.rb b/lib/pronto/eslint.rb index b6ccff1..0de31b2 100644 --- a/lib/pronto/eslint.rb +++ b/lib/pronto/eslint.rb @@ -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