cfjedimaster / brackets-jshint

Adds JSHint support to Brackets
MIT License
131 stars 41 forks source link

Added support for jshint extends option #54

Closed hacker112 closed 10 years ago

hacker112 commented 10 years ago

Added the extends options according to: https://github.com/jshint/jshint/pull/1314 Implemented in the cli.js of the command line version of jshint in loadConfig on line 532:

  if (config['extends']) {
    var baseConfig = exports.loadConfig(path.resolve(config.dirname, config['extends']));
    config.globals = _.extend({}, baseConfig.globals, config.globals);
    _.defaults(config, baseConfig);
    delete config['extends'];
  }
cfjedimaster commented 10 years ago

Thank you!

hacker112 commented 10 years ago

Well thank you for letting me participate :-)

miqmago commented 9 years ago

Cool option! Is there any possibility to extend "jshint.globals" under "Debug > Open Preferences File" with this option?

I've tried with

{
    "extends": "",
    ...
}

with no success (in fact I'm getting Bad option: 'extends')