Do people really just sit around think: "How can I make writing React as excruciatingly painful as possible? What arbitrary rules can I create to torment souls?"https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-max-depth.md …
-
-
“My job is to make the code ~clean~“
-
"I HAVE SATISFIED MY QUOTA OF 5 NEW LINT RULES THIS WEEK, SIR"
End of conversation
New conversation -
-
-
Well, you could use "jsx-max-depth" around 10 to prevent insanity. "react/no-multi-comp" is also useful because supporting components are 99% styled-components and they do not count towards that. "react/jsx-one-expression-per-line" can increase readability for reviewers.
-
And no, it does not make anything "excruciatingly painful". You write like a monkey as usual and it's automatically fixed when you hit save. I also make VSCode not show auto-fixed rules so they do not appear while coding. Feels just like Prettier and puts no pressure on devs.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 