aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/pronto/eslint.rb
diff options
context:
space:
mode:
authorMindaugas Mozūras <mindaugas.mozuras@gmail.com>2016-04-11 13:45:28 +0300
committerMindaugas Mozūras <mindaugas.mozuras@gmail.com>2016-04-11 13:45:28 +0300
commite999d3a611d015e2ee10187fcb490cc61fdf0553 (patch)
tree95c841184983fbc9df22d9481ff8a2197e8dc5b9 /lib/pronto/eslint.rb
parentd0305a09208be0683f587f1b5f40d7513cff43c7 (diff)
parente96fd240c5911e18f43c62b20ae5f18600c3d793 (diff)
downloadpronto-hlint-e999d3a611d015e2ee10187fcb490cc61fdf0553.tar.gz
pronto-hlint-e999d3a611d015e2ee10187fcb490cc61fdf0553.tar.zst
pronto-hlint-e999d3a611d015e2ee10187fcb490cc61fdf0553.zip
Merge pull request #1 from doits/add-es6-suffix
WIP: add es6 suffix to lint
Diffstat (limited to 'lib/pronto/eslint.rb')
-rw-r--r--lib/pronto/eslint.rb2
1 files changed, 1 insertions, 1 deletions
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
30 end 30 end
31 31
32 def js_file?(path) 32 def js_file?(path)
33 File.extname(path) == '.js' 33 %w(.js .es6).include? File.extname(path)
34 end 34 end
35 end 35 end
36end 36end