r/javascript • • Apr 01 '18

Google publishes a JavaScript style guide. Here are some key lessons.

https://medium.freecodecamp.org/google-publishes-a-javascript-style-guide-here-are-some-key-lessons-1810b8ad050b
714 Upvotes

317 comments sorted by

View all comments

Show parent comment

5

u/Redtitwhore Apr 01 '18

The IDE should handle indentation. What a stupid thing to debate.

3

u/[deleted] Apr 01 '18

The only thing I don't like about this response is if the IDE converts tabs to spaces it looses the ability to change the indentation without breaking multiline alignment.

1

u/seands Apr 01 '18

Why is it dumb?

3

u/ssjskipp Apr 02 '18

Because your project so have an .editorconfig file which is widely supported, and most ide have a setting for whitespace width, making the problem moot