我正在使用下划线库.
我在运行jshint时得到这个:
[L38:C38] W117: '_' is not defined. var approvedAndRequstedCount = _.countBy(products, function(obj) {
警告:任务"jshint:all"失败.使用--force继续.
这是我的配置文件:
{ "node": true, "browser": true, "esnext": true, "bitwise": true, "camelcase": false, "curly": true, "eqeqeq": true, "immed": true, "indent": 2, "latedef": true, "newcap": true, "noarg": true, "quotmark": "single", "regexp": true, "undef": true, "unused": true, "strict": true, "trailing": true, "smarttabs": true, "globals": { "angular": false } }
我猜这是全局选项的东西?我试图添加"_":假但没有运气.有任何想法吗?