You've got these developers running wild omitting semicolons and it's a HUGE mess. The problem is developers are too sloppy to write good code anymore, developers these days have it TOO EASY- this is not good. Use semicolons or quit JavaScript. Rules are rules!
-
-
-
Use
@standardjs and chill. -
With a linter plz.
-
Standard.js is a linter (built on eslint). It lints. What am I missing?
-
It's a style (see https://standardjs.com/ ) that also has a linter you can use to enforce the style. You should use it.
-
I occasionally encounter people who use the style guide without the linter. This seems like madness to me.
-
That goes against their own docs. One big reason people use checked standard.js (and the reason for the cheeky name) is for uniform style across a team.
End of conversation
New conversation -
-
-
I mean, I was writing semicolonless JS far in advance of using a linter. You don't need standard to not use semicolons.
-
At a lang level, semicolon use in JS is about as surprising as semicolonless implicit return in Rust. Hard for a week, but natural after.
-
The reason TC39 issued the recommendation is that there are new hazards and there will be more in the future. So there's nothing to memorize anymore. You gotta use a tool.
-
I don't think this accurately captures how people interact with the language. It's no more memorization than any other part of using any programming language.
-
That is, not using semicolons shapes how you speak the language; in practice it's not a checklist of gotchas, it's what utterances people consider natural. So, while tools will catch up, I don't think people lean on them, & I don't think TC39 should do more than forewarn.
- 1 more reply
New conversation -
-
-
I missed this. *All* JS styles including semicolon-heavy C style require linting at scale. Period full stop. Sorry if already known :-|.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Learning to never start a line with (, [, or ` does not require a tool. I use the tool because it catches lots of bugs, `no-unused-vars` mostly.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
why not use prettier and be done with it?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
isn't the whole source of this the new class syntax that is ambiguous without a semicolon, and thus dangerous to use without a linter?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
8 years semicolon-free without a linter. You need a linter just as much with any style.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Discouraging the omission of semi-colons due to the lack of linter use seems to me like the wrong issue. Really we should be discouraging the use of JavaScript, in any form, without the use of a linter.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.