我正在使用 JSHint 和 QUnit 运行 Grunt 构建。在我的第一次测试运行中,我得到以下信息:
Running "jshint:files" (jshint) task
Linting test/libs/qunit-1.11.0.js...ERROR
[L661:C22] W069: ['throws'] is better written in dot notation.
QUnit.raises = assert[ "throws" ];
[L1590:C33] W103: The '__proto__' property is deprecated.
return obj.__proto__;
Warning: Task "jshint:files" failed. Use --force to continue.
Aborted due to warnings.
除了编辑 QUnit 源代码和使用--force之外,我还能用它做什么?