4 ms·
The solution to "forget to run it and break production" is to add the linter to your CI tests, or even as a precommit hook. I touch on this in my other comment
by wolfgang42 10y ago
The solution to "forget to run it and break production" is to add the linter to your CI tests, or even as a precommit hook.
I touch on this in my other comment, but it's entirely possible to forget a semicolon and break things no matter which style you prefer. Both semi:always and semi:never+no-unexpected-multiline enforce good standards which can be assimilated; like spaces vs tabs, they're just different standards that people tend to develop very strong opinions about.
- partycoder 10y agoAnother solution is to prevent ambiguity and just terminate your statements with a semicolon.
- feross 10y agoExcept using semicolons everywhere does not protect you from automatic semicolon insertion. You still need to know the rules. https://feross.org/never-use-semicolons/ https://feross.org/never-use-semicolons/