import{SEVERITY_ERROR as e}from"./constants.mjs";import s from"./utils/reportCommentProblem.mjs";function o(o){const n=o.stylelint.disabledRanges,r=o.stylelint.config?.rules;if(r&&Object.values(r).some(e=>t(e)))for(const[l,i]of Object.entries(n))for(const n of i)r[l]&&t(r[l])&&s({rule:"reportDisables",message:`Rule "${l}" may not be disabled`,severity:e,node:n.node,postcssResult:o})}function t(e){return!(!e||!e[1])&&Boolean(e[1].reportDisables)}export{o as default};