Questions tagged [automatic-semicolon-insertion]
32 questions
1
vote
0 answers
How to prevent vue-cli project from automatically adding semi-colons
I just created a new vue-cli project using vue create my-project-name and although i manually didn't install eslint still when i save a javascript file without semi-colons they automatically get added, how do i prevent this? I think it might be…

Philogy
- 283
- 1
- 12
1
vote
0 answers
Is this valid automatic semicolon insertion?
I've been fiddling with JavaScript, and I found some behavior I don't understand. The problem seems to be with automatic semicolon insertion (ASI), but, to me, it looks like ASI is misbehaving. The following code has been tested with node v8.10, and…

Pedro Queiroga
- 381
- 1
- 12
1
vote
2 answers
Why a semicolon is necessary here?
I realise in the following JavaScript code, we need to add a ; just after $('#myButton').click(function() {}) to let $('.lala').myFunction() to be called.
$('#myButton').click(function() {})
(function ($) {
$.fn.myFunction = function (opt) {
…
user6330767
1
vote
2 answers
Do parentheses prevent semicolon insertion?
Say that I want to set a bunch of variables equal to null (and don't want to use an array/loop structure) or maybe I just want to write a large boolean expression across multiple lines. Does an unclosed parenthetical prevent semicolon insertion in…

Chris Middleton
- 5,654
- 5
- 31
- 68
0
votes
1 answer
Emmet missing semicolon inside css media query in Sublime Text 4
Emmet autocomplete doesn't add semicolon after css rules inside media query.
div {
display: none;
}
@media (max-width: 991.98px) {
div {
display: none
}
}
Outside media query
Inside media query

Melkon Simonyan
- 1
- 3
0
votes
0 answers
TypeScript auto semicolon in WebStorm
I'm new at this world, and I'm trying to configure my WebStorm as similar as possible to Visual Studio Code, where I learned to code. WebStorm is the IDE in my new company and is totally new for me.
Any one knows how to add automatically semicolon ;…

Daniel Calle
- 1
- 1
0
votes
4 answers
how to remove semicolon at the end of element from text file to list
How to remove this semicolon(;) from a text file. content of my text file:
201911007,1,28;
201203008,1,28;
199710014,1,28;
201612010,1,28;
201710017,1,28;
Then python reads it it always have semicolon at the end of 28 if I run…

benj armintia
- 35
- 8
0
votes
1 answer
google app script export csv with semicolon instead of comma
I am using the code below to export a google spreadsheet to CSV in a specific folder.
I need to have a semicolon (;) as delimiter instead of a comma (,)
function saveAsCSV() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var ssname =…

Jean
- 83
- 3
- 10
0
votes
2 answers
Error in omitting semicolon - can someone explain why?
Can someone please explain why if I omit the semicolon in the line while(nums[right-1] == nums[right--]);that I get a syntax error? I generally understand the point of semicolons, but why this specific line and not the others?
var threeSum =…

Robin Shrestha
- 5
- 1
0
votes
0 answers
How to transform a file from Excel format (.xlsx) into a .csv (semicolon) separated values?
I'm trying to transform an Excel file into a .csv (semicolon) separated file.
I now that there is a way to transform the file using the function "concatenate" (indeed I used this method) I took me a long time, the file had several columns to…

Lorenzo Castagno
- 528
- 1
- 10
- 27
0
votes
1 answer
Why are semicolons omitted in all my source js files?
I'm starting a web project in Aptana and have downloaded bootstrap (v 3.3.7) and jQuery (compressed). When I imported the files into my js folder, all the files came up with a warning sign and the only warnings I can see are that there are missing…

Cara
- 41
- 1
- 8
0
votes
3 answers
I've heard Javascript inserts ";" automatically and that may cause problems
I've also heard that Go insert them too, but they followed a different approach
How does Javascript insert semicolons while interpreting?

OscarRyz
- 196,001
- 113
- 385
- 569
0
votes
1 answer
Put semicolons in asi mode before brackets
I'm linting my JavaScript with JSHint, and have this option enabled
"asi": true,
"white": true
to avoid semicolons in my code.
But I have to begin my new line with a bracket, so I have to put a semicolon before the opening of that one
;(function ()…

Luke
- 2,976
- 6
- 34
- 44
-1
votes
1 answer
Can I get some simplified explanation about semi-colon use in php?
I have seen some articles explaining that a semi colon is not required in the last line of a PHP code due to the closing PHP tag (?>). Is this the case or is there any other theory around it?

Heisenberg
- 63
- 9
-1
votes
1 answer
Can Resharper add a semicolon to my javascript function declaration?
Using Visual Studio 2012, Resharper 7.0.1
If I'm editing JavaScript, and I type the following (| = cursor position):
this.myFunction = function() {|
.. Resharper will add the closing brace for me:
this.myFunction = function() {|}
... but I want…

dbruning
- 5,042
- 5
- 34
- 35