nl_tokens: Calculates the severity of a eslint . linter . verify result
pl_tokens: function getResultSeverity ( result , config ) { // Count all errors return result . reduce ( ( previous , <mask> ) => { let severity if ( message . fatal ) { return previous + 1 } severity = message . messages [ 0 ] ? message . messages [ 0 ] . severity : 0 if ( severity === 2 ) { return previous + 1 } return previous } , 0 ) }