import{SEVERITY_WARNING as t,SEVERITY_ERROR as s}from"../constants.mjs";function e({rule:e,message:r,severity:n,node:a,postcssResult:l}){const{source:i}=a;if(i?.start)switch(l.warn(r,{rule:e,severity:n,node:a,start:i.start,end:i.end}),n){case s:l.stylelint.stylelintError=!0;break;case t:l.stylelint.stylelintWarning=!0}}export{e as default};