Shopify / erb_lint

Lint your ERB or HTML files
MIT License
664 stars 122 forks source link

New linter suggestion: Enforce strict locals #338

Open andyw8 opened 9 months ago

andyw8 commented 9 months ago

Introduced in Rails 7.1:

https://github.com/rails/rails/pull/45602 https://masilotti.com/safer-rails-partials-with-strict-locals/

At a minimum, this would check for the presence of the <%# locals: ... %> magic comment in each partial.