]> git.openstreetmap.org Git - rails.git/blob - config/initializers/eslint.rb
Switch to 6.1 defaults as everything has been enabled for some time
[rails.git] / config / initializers / eslint.rb
1 if defined?(ESLintRails::Runner)
2   module OpenStreetMap
3     module ESLintRails
4       module ExcludeI18n
5         def assets
6           super.reject { |a| a.to_s.include?("/i18n/") }
7         end
8       end
9     end
10   end
11
12   ESLintRails::Runner.prepend(OpenStreetMap::ESLintRails::ExcludeI18n)
13 end