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

  const userDeprecated = _.intersection(rules.stylelintDeprecated, rules.userRulesNames);

  if (!userDeprecated.length) {
    return;
  }

  const heading = chalk.red.underline('DEPRECATED: Configured rules that are deprecated:');
  const rulesToPrint = _.map(userDeprecated, rule => {
    return {
      rule: chalk.redBright(rule),
      url: chalk.cyan(`https://stylelint.io/user-guide/rules/${rule}/`)
    };
  });

  printColumns(heading, rulesToPrint);
}
function printUserDeprecated() {
  if (!argv.deprecated) {
    return;
  }

  const userDeprecated = _.intersection(rules.stylelintDeprecated, rules.userRulesNames);

  if (!userDeprecated.length) {
    return;
  }

  const heading = chalk.red.underline('DEPRECATED: Configured rules that are deprecated:');
  const rulesToPrint = _.map(userDeprecated, rule => {
    return {
      rule: chalk.redBright(rule),
      url: chalk.cyan(`https://stylelint.io/user-guide/rules/${rule}/`)
    };
  });

  printColumns(heading, rulesToPrint);
}
function printUserDeprecated ( ) { if ( ! argv . deprecated ) { return ; } const userDeprecated = _ . intersection ( rules . stylelintDeprecated , rules . userRulesNames ) ; if ( ! userDeprecated . length ) { return ; } const heading = chalk . red . underline ( 'DEPRECATED: Configured rules that are deprecated:' ) ; const rulesToPrint = _ . map ( userDeprecated , rule => { return { rule : chalk . redBright ( rule ) , url : chalk . cyan ( ` ${ rule } ` ) } ; } ) ; printColumns ( heading , rulesToPrint ) ; }
Print user configured rules that are deprecated
Print user configured rules that are deprecated