MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/d853ul/knowing_how_to_code_beforehand/f17r8ca
r/ProgrammerHumor • u/Cenggo • Sep 23 '19
264 comments sorted by
View all comments
Show parent comments
16
You believe an auto formatter should not format your code?
Also, adding semicolons wouldn't be one by the auto-formatter, it would be done by eslint's auto-fix.
2 u/Delioth Sep 23 '19 Depends - we use Prettier, which will add our semicolons. Because it's not really the linter doing smart things, it's the formatter formatting your code in the way that the js runtime will be interpreting it.
2
Depends - we use Prettier, which will add our semicolons. Because it's not really the linter doing smart things, it's the formatter formatting your code in the way that the js runtime will be interpreting it.
16
u/edgen22 Sep 23 '19
You believe an auto formatter should not format your code?
Also, adding semicolons wouldn't be one by the auto-formatter, it would be done by eslint's auto-fix.