src/index.js
/**
 * Takes Stylelint messages and adapts them to Checkstyle format.
 * @param  {Array<Object>} messageList List of messages in Stylelint format.
 * @return {Array<Object>}             List of messages in Checkstyle format.
 */
Takes Stylelint messages and adapts them to Checkstyle format.
@param  {Array} messageList List of messages in Stylelint format.
@return {Array}             List of messages in Checkstyle format.
Takes Stylelint messages and adapts them to Checkstyle format . @param { Array } messageList List of messages in Stylelint format . @return { Array } List of messages in Checkstyle format .
function stylelintToCheckstyleMessageListAdapter(messageList) {
  return messageList
    .filter(message => message.plugin === 'stylelint')
    .map(stylelintToCheckstyleMessageAdapter);
}
function stylelintToCheckstyleMessageListAdapter ( messageList ) { return messageList . filter ( message => message . plugin === 'stylelint' ) . map ( stylelintToCheckstyleMessageAdapter ) ; }
Takes Stylelint messages and adapts them to Checkstyle format.
Takes Stylelint messages and adapts them to Checkstyle format .