r/javascript • • Jan 27 '15

JavaScript Standard Style - no more .jshintrc or .jscs files

https://github.com/feross/standard
0 Upvotes

5 comments sorted by

4

u/Clapyourhandssayyeah Jan 27 '15

No semicolons (and then being recommended to start lines with ; to get around that in one case). And no == null.

No thanks :(

2

u/more_exercise Jan 27 '15

Apparently updated:

obj == null is allowed for succinctness (obj === null || obj === undefined)

4

u/eusx Jan 27 '15

2 spaces for indentation

No, thank you.

1

u/dada_ Jan 27 '15

I think the right approach is to have a number of prevailing styles with large adoption, e.g. Google's style guide, with pre-built .jscs configuration files. It makes it very easy to force a project to adopt a specific style, without removing flexibility with regard to what that style should be—but while also protecting devs from straying too far from established standards.

0

u/[deleted] Jan 27 '15

[deleted]

1

u/_compedit Jan 27 '15

Pretty much how I felt about it too tbh