Fab*_*cht 5 javascript jshint atom-editor
我正在研究一些ES6 javascript代码,并linter-jshint不断抛出此错误.
我试着查找所有JSHint选项.起初我添加{"esversion": 6}到用户目录上的.jshintrc文件中.这是错误开始出现的时候.然后我试着去弃用{"esnext": true}.错误只是改为另一个,所以我回去了.
这个选项应该有效,我不明白为什么它会显示这个错误.这是一个有效的选择,不是吗?
顺便说一下,我正在使用Atom.
这是我的工作 .jshintrc 文件,其中有一个错误的属性错误,给出了相同类型的消息:
{
"predef": [ "$", "jQuery", "text", "$p", "window", "document", "console", "parent" ],
"curly": true,
"eqeqeq": true,
"funcscope": true,
"futurehostile": true,
"latedef": true,
"nonbsp": true,
"notypeof": true,
"shadow": "outer",
"singleGroups": true,
"undef": true,
"unused": true,
"debug": true,
"scripturl": true,
"-W079": true
}
Run Code Online (Sandbox Code Playgroud)
有用的东西。如果您Ctrl + Alt + Cmd + L(在 Mac 上)重新加载 Atom,请考虑最后的更改。