Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Suggestion: require strict locals #486

Open
mockdeep opened this issue Feb 1, 2024 · 0 comments
Open

Feature Suggestion: require strict locals #486

mockdeep opened this issue Feb 1, 2024 · 0 comments

Comments

@mockdeep
Copy link
Contributor

mockdeep commented Feb 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants