在PhpStorm中运行jsHintConfig [英] Run jsHintConfig in PhpStorm
问题描述
在file -> settings -> Language & Frameworks -> JavaScript -> JSHint
的PhpStorm中,我检查了Enable
和Use config files
.我已经尝试了location
的两个选项.对于自定义配置文件,我使用了指向package.json
的路径,但无法覆盖jshint设置.好像IDE在其他地方找东西...
In PhpStorm in file -> settings -> Language & Frameworks -> JavaScript -> JSHint
I have checked Enable
and Use config files
. I have tried both options for location
. For custom configuration file I used a path leading to my package.json
yet I am not able to override jshint settings. It seems like if the IDE was looking somewhere else...
如何告诉PhpStorm/WebStorm应该使用package.json
中的jsHintConfig
?
How to tell PhpStorm/WebStorm that it should use jsHintConfig
from package.json
?
如果我使用
"jshintConfig": {
"eqeqeq": true, // true: Require triple equals (===) for comparison
}
IDE不会抱怨==
.
推荐答案
我不得不将JSHint版本从 2.8.0(捆绑)更改为 2.9.1 ,使用位置->默认设置.
I had to change the JSHint version from 2.8.0 (Bundled) to 2.9.1 and use Location -> Default settings.
这篇关于在PhpStorm中运行jsHintConfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!