Automatically lints your ERB view files using Guard and the Shopify/erb_lint gem.
Add this line to your application's Gemfile:
gem("guard-erb_lint", git: "https://github.com/Driversnote-Dev/guard-erb_lint")
And then execute:
bundle install
bundle exec guard init erb_lint
Or just add the following to your Guardfile:
guard(:erb_lint) do
watch(/.+\.erb$/)
watch(/.+\.html$/)
end
Bug reports and pull requests are welcome on GitHub at https://github.com/Driversnote-Dev/guard-erb_lint.
The gem is available as open source under the terms of the MIT License.