You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using semi will make the code style consistent, so it is recommended to use semi
Certain ECMAScript statements (empty statement, variable statement, expression statement, do-while statement, continue statement, break statement, return statement, and throw statement) must be terminated with semicolons
Using semi will make the code style consistent, so it is recommended to use semi
Certain ECMAScript statements (empty statement, variable statement, expression statement, do-while statement, continue statement, break statement, return statement, and throw statement) must be terminated with semicolons
This is just a matter of code style and has been agreed upon by other members.
The title of the section referenced above is Automatic Section Insertion which is known as ASI that specifies how the semicolon should be inserted by interpreter. The conclusion of this section These situations are described by saying that semicolons are automatically inserted into the source code token stream in those situations. also proves it.
And the specification/TC39 committee has no bias on the code style
format
npm script and run it with staging files on committing;prettier
to remove semicolons.The text was updated successfully, but these errors were encountered: