在PhpStorm中运行jsHintConfig [英] Run jsHintConfig in PhpStorm

查看:257
本文介绍了在PhpStorm中运行jsHintConfig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

file -> settings -> Language & Frameworks -> JavaScript -> JSHint的PhpStorm中,我检查了EnableUse 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆