mirror of
https://github.com/openstreetmap/openstreetmap-website.git
synced 2025-08-16 17:07:06 +00:00
Exclude node_modules form eslint checks
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user