Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable jslint plugin in Notepad++ to recognize es6 features like "=>"

Is it possible to enable ES6 features in the jslint plugin for Notepad++?

I tried setting the option es6 and ES6 to true but that doesn't seem to work.

Specifically I'm using the arrow functions "=>" and getting jslint errors saying expected an identifier and saw ">".

This is for programs running under node.js v 4.2.1 using notepad++ as the editor in a Windows 2012 R2 environment.

like image 379
ciso Avatar asked Sep 27 '22 10:09

ciso


1 Answers

Found the answer. Add

/*jslint es6:true*/ 

at the beginning of the program and get the latest jslint plugin for notepad++ at http://sourceforge.net/projects/jslintnpp/

like image 87
ciso Avatar answered Oct 18 '22 08:10

ciso