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

Rule proposal: disallow string literal in mustache #889

Closed
golopot opened this issue May 10, 2019 · 0 comments · Fixed by #1187
Closed

Rule proposal: disallow string literal in mustache #889

golopot opened this issue May 10, 2019 · 0 comments · Fixed by #1187

Comments

@golopot
Copy link
Contributor

golopot commented May 10, 2019

Please describe what the rule should do:
Disallow string literals in mustache.

What category should the rule belong to?

[x] Enforces code style

Provide 2-3 code examples that this rule should warn about:

<div>{{"foo"}}</div>
<div :class="{{'baz'}}" />

Additional context
Similar rule in eslint-plugin-react: react/jsx-curly-presense.

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

Successfully merging a pull request may close this issue.

1 participant