Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSemicolons and using 'standard' with React/client-side Javascript #698
Comments
karloespiritu
changed the title
Semicolons and using `standard` with React/client-side Javascript
Semicolons and using 'standard' with React/client-side Javascript
Nov 23, 2016
This comment has been minimized.
This comment has been minimized.
Nope
|
This comment has been minimized.
This comment has been minimized.
Guria
commented
Nov 23, 2016
•
|
@karloespiritu just try this on cases on demo. Both arithmetic operators and template literals emit warnings. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Glad to hear it |
LinusU
closed this
Nov 23, 2016
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
karloespiritu commentedNov 23, 2016
I'm using
standardfor all of my new Node.js projects, and it works great so far. I'm wondering ifstandardwould also be ideal for React projects. I really like usingstandardas my linter because I prefer my JS code without the semicolons.Based on the
standardjsdocs, the only gotcha with omitting semicolons is when starting a line with(,[, or `. And then, I came across this discussion - https://forum.shakacode.com/t/es6-airbnb-style-guidelines-and-semicolons/235It was mentioned by someone from AirBnb that these three characters are NOT the only gotchas, but also -- arithmetic operators and template literals.
I also noticed that most React-based projects, including Facebook's
create-react-appproject still use semicolons. Most of the boilerplate projects for React use Airbnb's JS style guide, which requires using semicolons and dangling commas.My question is -- Will there be any issues if I use
standardas a style guide for React or any client-side Javascript code that is transpiled to ES5?It would be really nice to use
standardfor React/client-side javascript projects so I can unify my JS code style guide for both Node.js and React. Thanks.