Exclude node_modules form eslint checks
This commit is contained in:
parent
58e95f7ea4
commit
8072a82f1d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue