Feature Suggestion: require strict locals
mockdeep opened this issue · 0 comments
mockdeep commented
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.