]> git.openstreetmap.org Git - rails.git/commitdiff
Exclude node_modules form eslint checks
authorTom Hughes <tom@compton.nu>
Tue, 22 Oct 2019 19:37:39 +0000 (20:37 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 22 Oct 2019 19:37:39 +0000 (20:37 +0100)
lib/tasks/eslint.rake

index 7d30fc0b65cc3112bfe844a610533b5a22e25200..311d79c76ab9bb5057d7a3e8bc9af28fd3e45aa4 100644 (file)
@@ -11,7 +11,7 @@ namespace "eslint" do
 
   def js_files
     Rails.application.assets.each_file.select do |file|
 
   def js_files
     Rails.application.assets.each_file.select do |file|
-      file.ends_with?(".js") && !file.match?(%r{/(gems|vendor|i18n)/})
+      file.ends_with?(".js") && !file.match?(%r{/(gems|vendor|i18n|node_modules)/})
     end
   end
 
     end
   end