[英]Error in WebStorm editor for JavaScript version
So this project is in JavaScript. 因此,该项目使用JavaScript。 In
在
Preferences -> Languages & Frameworks -> JavaScript -> JavaScript language version
I selected 我选了
EECMAScript 6
When I then open a JavaScript file and have this line: 然后,当我打开JavaScript文件并显示以下行时:
const router = require('express').Router();
I see that has a red underline and the message is: 我看到带有红色下划线的消息是:
"JSHint: const is available in ES6 (use esversion: 6)"
Why? 为什么? Am I not using version 6?
我不使用版本6吗? Or what is the problem?
还是什么问题?
You need to set the version also in JSHint, if you want to use that linter. 如果要使用该Linter,则还需要在JSHint中设置版本。
More about this here: 有关此的更多信息:
http://jshint.com/docs/options/#esversion http://jshint.com/docs/options/#esversion
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.