温馨提示:本文翻译自stackoverflow.com,查看原文请点击:其他 - PhpStorm can't configure JSHint
phpstorm jshint

其他 - PhpStorm无法配置JSHint

发布于 2020-03-31 23:40:16

在此处输入图片说明

无法弄清楚如何更改.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
}

查看更多

提问者
barmaxon
被浏览
233
lena 2020-01-31 20:37

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