PhpStorm无法配置JSHint

问题描述 投票:0回答:1

enter image description here

无法找出如何更改.jshintrc文件以使JSHint看到window对象中的变量而未添加“窗口”。

。jshintrc

"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"expr": true,
"immed": true,
"noarg": true,
"undef": true,
"unused": true,
"node": true,

"evil": true,
"sub": true,
"esversion": 6,

"globals": {
    "window": true,
    "JSON": false,

    "jQuery": true,
    "define": false,
    "module": false,
    "noGlobal": true
}
phpstorm jshint
1个回答
1
投票

无法将JSHint设置为接受在window对象中创建的变量。请参阅https://github.com/jshint/jshint/issues/2555#issuecomment-122302652以获取可能的解决方法

© www.soinside.com 2019 - 2024. All rights reserved.