【问题标题】:Run jsHintConfig in PhpStorm在 PhpStorm 中运行 jsHintConfig
【发布时间】:2016-04-23 11:22:06
【问题描述】:

file -> settings -> Language & Frameworks -> JavaScript -> JSHint 的 PhpStorm 中,我检查了 EnableUse config files。我已经尝试了location 的两种选择。对于自定义配置文件,我使用了指向我的 package.json 的路径,但我无法覆盖 jshint 设置。似乎 IDE 正在寻找其他地方......

如何告诉 PhpStorm/WebStorm 它应该使用来自 package.jsonjsHintConfig

如果我使用

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

IDE 不会抱怨==

【问题讨论】:

    标签: phpstorm webstorm jetbrains-ide


    【解决方案1】:

    我不得不将 JSHint 版本从 2.8.0 (Bundled) 更改为 2.9.1 并使用 Location -> Default 设置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-06
      • 1970-01-01
      • 1970-01-01
      • 2016-05-02
      • 2017-09-18
      • 2016-02-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多