-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
"eslint": "^4.18.2",
"eslint-plugin-react": "^7.6.1",
I have the prop: "react/jsx-curly-brace-presence":["error", { "props": "always", "children": "always" }], in my .eslintrc file because I'm trying to convert:
<div className="NameCapture_wrapper">
<p className="NameCapture__question">
What's your first name?
</p>
<NameCaptureNameInput/>
</div>to:
<div className={`NameCapture_wrapper`}>
<p className={`NameCapture__question`}>
{`What's your first name?`}
</p>
<NameCaptureNameInput/>
</div>but eslint is complaining about the whitespace:
10:44 error Need to wrap this literal in a JSX expression react/jsx-curly-brace-presence
13:49 error Need to wrap this literal in a JSX expression react/jsx-curly-brace-presence
14:56 error Need to wrap this literal in a JSX expression react/jsx-curly-brace-presence
17:53 error Need to wrap this literal in a JSX expression react/jsx-curly-brace-presence
18:45 error Need to wrap this literal in a JSX expression react/jsx-curly-brace-presence
19:23 error Need to wrap this literal in a JSX expression react/jsx-curly-brace-presence
Below is what fixes it but I shouldn't have to put all of my JSX on one line right?
<div className={`NameCapture_wrapper`}><p className={`NameCapture__question`}>{`What's your first name?`}</p><NameCaptureNameInput/></div>azat-io and linvain
Metadata
Metadata
Assignees
Labels
No labels