import{SEVERITY_ERROR as n,DEFAULT_SEVERITY as e}from"../constants.mjs";function t(n){for(const e of n.parseErrors||[])n.warnings.push(r(e));for(const e of n.warnings)e.severity=i(e);return n.warnings.sort(l),n}function r(e){return{line:e.line,column:e.column,rule:e.stylelintType,severity:n,text:`${e.text} (${e.stylelintType})`}}function i(n){return n.severity||e}function l(n,e){return!n.line&&e.line?-1:n.line&&!e.line?1:n.line<e.line?-1:n.line>e.line?1:n.column<e.column?-1:n.column>e.column?1:0}export{t as default};