From 347e6ab774cd401e437450fc93504b78bf90d748 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Sat, 9 Apr 2016 13:57:40 +0200 Subject: add es6 suffix to lint --- lib/pronto/eslint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3