src/getConfig.js
function unknownValidationReporter(config, option) {
  /**
   * If the unkonwn property is a glob this is probably
   * a typical mistake of mixing simple and advanced configs
   */
  if (isGlob(option)) {
    // prettier-ignore
    const message = `You are probably trying to mix simple and advanced config formats. Adding

  ${chalk.bold(`"linters": {
    "${option}": ${JSON.stringify(config[option])}
  }`)}

  will fix it and remove this message.`

    return logUnknown(option, message, config[option])
  }

  // If it is not glob pattern, simply notify of unknown value
  return logUnknown(option, '', config[option])
}
function unknownValidationReporter(config, option) {
  /**
   * If the unkonwn property is a glob this is probably
   * a typical mistake of mixing simple and advanced configs
   */
  if (isGlob(option)) {
    // prettier-ignore
    const message = `You are probably trying to mix simple and advanced config formats. Adding

  ${chalk.bold(`"linters": {
    "${option}": ${JSON.stringify(config[option])}
  }`)}

  will fix it and remove this message.`

    return logUnknown(option, message, config[option])
  }

  // If it is not glob pattern, simply notify of unknown value
  return logUnknown(option, '', config[option])
}
function unknownValidationReporter ( config , option ) { /**
   * If the unkonwn property is a glob this is probably
   * a typical mistake of mixing simple and advanced configs
   */ if ( isGlob ( option ) ) { // prettier-ignore const message = ` ${ chalk . bold ( ` ${ option } ${ JSON . stringify ( config [ option ] ) } ` ) } ` return logUnknown ( option , message , config [ option ] ) } // If it is not glob pattern, simply notify of unknown value return logUnknown ( option , '' , config [ option ] ) }
Reporter for unknown options
@param config
@param option
@returns {void}
Reporter for unknown options