haml-lint icon indicating copy to clipboard operation
haml-lint copied to clipboard

Feature Suggestion: require strict locals

Open mockdeep opened this issue 5 months ago • 0 comments

We've been incorporating the new "strict locals" feature in Rails 7.1 into our views. It would be great to have a haml linter to require this. Right now we're only doing it in partials, not top level templates, so ideally it would allow some configuration like the InstanceVariables linter to allow linting only partials files. In some projects I would lint all, though, as they pass locals from the controllers as well.

mockdeep avatar Feb 01 '24 03:02 mockdeep