ciso
ciso

Reputation: 3050

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.

Upvotes: 6

Views: 4459

Answers (2)

Alexandra Pavlyshina
Alexandra Pavlyshina

Reputation: 31

Add at the beginning of your code:

/*jslint esnext:true*/

Upvotes: 2

ciso
ciso

Reputation: 3050

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/

Upvotes: 2

Related Questions