verekia / js-stack-from-scratch

🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
MIT License
20.05k stars 1.99k forks source link

Missing parentheses around multiline JSX (react/jsx-wrap-multilines) #222

Open lavebug opened 7 years ago

lavebug commented 7 years ago

Type of issue: feature suggestion

Chapter: 04 - Webpack, React, and Hot Module Replacement (Very End of it)

If it's a bug:

In src/client/index.jsx

screen shot 2017-05-23 at 10 48 47 am

NicolasWebDev commented 7 years ago

I can confirm the problem. Only styling though.

IsoLinearCHiP commented 6 years ago

Stumbled over this as well. Alternatively declaring it as a concious style choice with /* eslint-disable react/jsx-wrap-multilines */, either at the top of the file or before the offending line, works too

dougkulak commented 6 years ago

I fixed this by adding the following to my .eslintrc.json: "rules": { "react/jsx-wrap-multilines": false, ... }