Skip to content

Rule proposal: disallow string literal in mustache #889

Closed
@golopot

Description

@golopot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions