plugins/lint.js
function configurator (location) {
  return !(location && fs.existsSync(location))
    ? {}
    : JSON.parse(
        fs.readFileSync(location, 'UTF-8')
          .replace(/\/\*[\s\S]*(?:\*\/)/g, '') // removes /* comments */
          .replace(/\/\/[^\n\r]*/g, '') // removes // comments
      );
}
function configurator (location) {
  return !(location && fs.existsSync(location))
    ? {}
    : JSON.parse(
        fs.readFileSync(location, 'UTF-8')
          .replace(/\/\*[\s\S]*(?:\*\/)/g, '') // removes /* comments */
          .replace(/\/\/[^\n\r]*/g, '') // removes // comments
      );
}
function configurator ( location ) { return ! ( location && fs . existsSync ( location ) ) ? { } : JSON . parse ( fs . readFileSync ( location , 'UTF-8' ) . replace ( / \/\*[\s\S]*(?:\*\/) / g , '' ) // removes /* comments */ . replace ( / \/\/[^\n\r]* / g , '' ) // removes // comments ) ; }
Simple configuration parser, which is less strict then a regular JSON parser.

@param {String} path
@returns {Object}
Simple configuration parser which is less strict then a regular JSON parser .