src/index.js
/**
 * Takes Stylelint results (with messages) and adapts them to Checkstyle format.
 * @param  {Array<Object>} resultList List of results in Stylelint format.
 * @return {Array<Object>}            List of results in Checkstyle format.
 */
Takes Stylelint results (with messages) and adapts them to Checkstyle format.
@param  {Array} resultList List of results in Stylelint format.
@return {Array}            List of results in Checkstyle format.
Takes Stylelint results ( with messages ) and adapts them to Checkstyle format . @param { Array } resultList List of results in Stylelint format . @return { Array } List of results in Checkstyle format .
function stylelintToCheckstyleResultListAdapter(resultList) {
  return resultList
    .filter(result => result.messages.length > 0)
    .map(stylelineToCheckstyleResultAdapter);
}
function stylelintToCheckstyleResultListAdapter ( resultList ) { return resultList . filter ( result => result . messages . length > 0 ) . map ( stylelineToCheckstyleResultAdapter ) ; }
Takes Stylelint results (with messages) and adapts them to Checkstyle format.
Takes Stylelint results ( with messages ) and adapts them to Checkstyle format .