Exclude generated i18n files from eslint checks

This commit is contained in:
Tom Hughes 2019-04-06 17:13:12 +01:00
parent eb7678145a
commit 9256397e46

View file

@ -0,0 +1,13 @@
if defined?(ESLintRails::Runner)
module OpenStreetMap
module ESLintRails
module ExcludeI18n
def assets
super.reject { |a| a.to_s =~ %r{/i18n/} }
end
end
end
end
ESLintRails::Runner.prepend(OpenStreetMap::ESLintRails::ExcludeI18n)
end