Search code examples
javascriptnode.jsnotepad++ecmascript-6jslint

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.


Solution

  • 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/