understanding-es6 icon indicating copy to clipboard operation
understanding-es6 copied to clipboard

Style guide

Open softwarespot opened this issue 9 years ago • 4 comments

Right now the examples are good, but the styles are a little all over the place. One approach would be to use a style guide and enforce it somehow e.g. gulp. May I recommend Airbnb as the basis for writing examples.

Another question, wouldn't it be good to use const/let instead of var in the examples?

softwarespot avatar Jan 30 '16 08:01 softwarespot

According to Airbnb's guide, const should always be used unless there are cases for let.

softwarespot avatar Jan 31 '16 09:01 softwarespot

Of course it's a style guide, so open to a lot of interpretation. Though I notice more and more people (including myself) are adopting it these days.

softwarespot avatar Jan 31 '16 09:01 softwarespot

I agree with you, this whole thing started as me learning and in the process creating help of everyone else. That is reason styles are a bit messed up.

I will update this thing sometime over this week else please send a PR and I will merge.

sgaurav avatar Feb 01 '16 09:02 sgaurav

I can do it tonight, that's no problem

softwarespot avatar Feb 01 '16 09:02 softwarespot