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

the plugin is not support es6, what should i do for this problem? #22

Closed xiatian12345 closed 4 years ago

xiatian12345 commented 4 years ago

Line 1, col 1: 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). Line 2, col 1: 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). Line 7, col 8: 'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

pixelkind commented 4 years ago

Hej, in the next version, es6 Support will be the default. So long, a workaround is to enter

/* jslint esversion: 6 */

at the beginning of the file.