lib/augmentConfig.js
function absolutizeProcessors(
  processors /*: stylelint$configProcessors*/,
  configDir /*: string*/
) /*: stylelint$configProcessors*/ {
  const normalizedProcessors = Array.isArray(processors)
    ? processors
    : [processors];

  return normalizedProcessors.map(item => {
    if (typeof item === "string") {
      return getModulePath(configDir, item);
    }

    return [getModulePath(configDir, item[0]), item[1]];
  });
}
function absolutizeProcessors(
  processors /*: stylelint$configProcessors*/,
  configDir /*: string*/
) /*: stylelint$configProcessors*/ {
  const normalizedProcessors = Array.isArray(processors)
    ? processors
    : [processors];

  return normalizedProcessors.map(item => {
    if (typeof item === "string") {
      return getModulePath(configDir, item);
    }

    return [getModulePath(configDir, item[0]), item[1]];
  });
}
function absolutizeProcessors ( processors /*: stylelint$configProcessors*/ , configDir /*: string*/ ) /*: stylelint$configProcessors*/ { const normalizedProcessors = Array . isArray ( processors ) ? processors : [ processors ] ; return normalizedProcessors . map ( item => { if ( typeof item === "string" ) { return getModulePath ( configDir , item ) ; } return [ getModulePath ( configDir , item [ 0 ] ) , item [ 1 ] ] ; } ) ; }
Processors are absolutized in their own way because they can be and return a string or an array
Processors are absolutized in their own way because they can be and return a string or an array