]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/eslint.rake
Merge remote-tracking branch 'upstream/pull/2416'
[rails.git] / 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|
-      file.ends_with?(".js") && !file.match?(%r{/(gems|vendor|i18n)/})
+      file.ends_with?(".js") && !file.match?(%r{/(gems|vendor|i18n|node_modules)/})
     end
   end