.jshintrc中的globals和predef之间的区别? [英] difference between globals and predef in .jshintrc?

查看:77
本文介绍了.jshintrc中的globals和predef之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将它们都放在.jshintrc中有什么区别和目的?当我想添加一个要忽略的变量时,哪一个是我应该使用的最好的变量?另外,我在 http://www.jshint.com/docs/options/

What the difference and purpose of having both of them in the .jshintrc? When I want to add a variable to be ignored, which one is the best one I should use? Also I can't find 'predef' in http://www.jshint.com/docs/options/

推荐答案

似乎已弃用predef,而应使用globals.

It seems like predef is deprecated and you should use globals instead.

更多信息此处

这篇关于.jshintrc中的globals和predef之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆