[英]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++? 是否可以在Notepad ++的jslint插件中启用ES6功能?
I tried setting the option es6 and ES6 to true but that doesn't seem to work. 我尝试将选项es6和ES6设置为true,但这似乎不起作用。
Specifically I'm using the arrow functions "=>" and getting jslint errors saying expected an identifier and saw ">". 具体来说,我使用箭头函数“=>”并获取jslint错误说预期标识符并看到“>”。
This is for programs running under node.js v 4.2.1 using notepad++ as the editor in a Windows 2012 R2 environment. 这适用于在node.js v 4.2.1下运行的程序,使用notepad ++作为Windows 2012 R2环境中的编辑器。
在代码的开头添加:
/*jslint esnext:true*/
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/ 在程序的开头,并在http://sourceforge.net/projects/jslintnpp/获取最新的记事本++ jslint插件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.