pixelkind / p5canvas

An interactive preview for writing p5js code in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=garrit.p5canvas
Other
39 stars 4 forks source link

I hate semiclons, but the monkey is lovely. #63

Closed archtaurus closed 1 year ago

archtaurus commented 1 year ago
function setup() {
    createCanvas(400, 400)
    background(200)
    stroke(0)
    fill(255)
    line(0, 0, 400, 400)
    rect(25, 25, 50, 50)
    square(100, 25, 50)
    circle(200, 50, 50)
    point(200, 50)
    ellipse(275, 50, 50, 25)
    triangle(50, 100, 25, 150, 75, 150)
}
🙊 Errors:
Line 2, col 27: Missing semicolon.
Line 3, col 20: Missing semicolon.
Line 4, col 14: Missing semicolon.
Line 5, col 14: Missing semicolon.
Line 6, col 25: Missing semicolon.
Line 7, col 25: Missing semicolon.
Line 8, col 24: Missing semicolon.
Line 9, col 24: Missing semicolon.
Line 10, col 19: Missing semicolon.
Line 11, col 29: Missing semicolon.
Line 12, col 40: Missing semicolon.
archtaurus commented 1 year ago

How can I get rid of these warnings?

pixelkind commented 1 year ago

Currently it is enforced by JSHINT, but until there is a setting to configure JSHINT your self, you can add the following line in the beginning of your JS file:

/*jshint -W033 */

And glad that you like the monkey :)