src/lib/cli.js
function printConfiguredUnavailable() {
  if (!argv.invalid) {
    return;
  }

  const configuredUnavailable = _.difference(rules.userRulesNames, rules.stylelintAll);

  if (!configuredUnavailable.length) {
    return;
  }

  const heading = chalk.red.underline('INVALID: Configured rules that are no longer available:');
  const rulesToPrint = _.map(configuredUnavailable, rule => {
    return {
      rule: chalk.redBright(rule)
    };
  });

  printColumns(heading, rulesToPrint);
}
function printConfiguredUnavailable() {
  if (!argv.invalid) {
    return;
  }

  const configuredUnavailable = _.difference(rules.userRulesNames, rules.stylelintAll);

  if (!configuredUnavailable.length) {
    return;
  }

  const heading = chalk.red.underline('INVALID: Configured rules that are no longer available:');
  const rulesToPrint = _.map(configuredUnavailable, rule => {
    return {
      rule: chalk.redBright(rule)
    };
  });

  printColumns(heading, rulesToPrint);
}
function printConfiguredUnavailable ( ) { if ( ! argv . invalid ) { return ; } const configuredUnavailable = _ . difference ( rules . userRulesNames , rules . stylelintAll ) ; if ( ! configuredUnavailable . length ) { return ; } const heading = chalk . red . underline ( 'INVALID: Configured rules that are no longer available:' ) ; const rulesToPrint = _ . map ( configuredUnavailable , rule => { return { rule : chalk . redBright ( rule ) } ; } ) ; printColumns ( heading , rulesToPrint ) ; }
Print configured rules that are no longer available
Print configured rules that are no longer available