Content-Length: 274013 | pFad | https://redirect.github.com/jsx-eslint/eslint-plugin-react/issues/1511

B1 react/jsx-no-literals rule shows warning with template strings · Issue #1511 · jsx-eslint/eslint-plugin-react · GitHub
Skip to content

react/jsx-no-literals rule shows warning with template strings #1511

@medialwerk

Description

@medialwerk

Hello,

i'm using eslint@4.10.0 and eslint-plugin-react@7.4.0. The linter shows a warning if a join a string with "template strings", but not if I join it with the + operator:

<div className={'test' + name} />
// No warning
<div className={`test ${name}`} />
// Strings not allowed in JSX files (react/jsx-no-literals)

Is this a known issue?

Best regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://redirect.github.com/jsx-eslint/eslint-plugin-react/issues/1511

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy