Run jsHintConfig in PhpStorm

丶灬走出姿态 提交于 2019-12-12 02:44:20

问题


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...

How to tell PhpStorm/WebStorm that it should use jsHintConfig from package.json?

If I use

"jshintConfig": {
  "eqeqeq": true,  // true: Require triple equals (===) for comparison
}

The IDE doesn't complain of ==.


回答1:


I had to change the JSHint version from 2.8.0 (Bundled) to 2.9.1 and use Location -> Default settings.



来源:https://stackoverflow.com/questions/36810147/run-jshintconfig-in-phpstorm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!