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/
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- google-drive can't get push notifications
- How to reimport module with ES6 import
- Why is `node.js` dying when called from inside pyt
- How to verify laravel passport api token in node /
相关文章
- node连接远程oracle报错
- How can make folder with Firebase Cloud Functions
- @angular-cli install fails with deprecated request
- node.js modify file data stream?
- How to resolve hostname to an ip address in node j
- Transactionally writing files in Node.js
- Log to node console or debug during webpack build
- Get file created date in node
It seems like
predef
is deprecated and you should useglobals
instead.More information here
At JSHint Doc page http://www.jshint.com/docs/
"predef"
is mention for use inside.jshintrc
file, wile word "globals" is used only once for inline directive (those that are inside.js
files)So examples would be :
inside
.jshintrc
fileinside
.js
filesSo it would be better to use different words when doing the same but in different places.