How to use the jshint/lib/hint.hint function in jshint

To help you get started, we’ve selected a few jshint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github colorhook / att / lib / builtins / hint.js View on Github external
this.hintJS = function(file, options){
      var opts = attutil.merge(this.options.js, options);
      var r = jshint.hint([file], opts);
      if(!r.length){
        console.log('\nok %s\n'.yellow, file);
      }
    }