import e from"../../../../stylelint/lib/index.mjs";import{ruleName as s,ruleMessages as t,ruleMeta as i}from"./base.mjs";import{isPhysicalUnit as r,getValueUnit as a}from"../../utils/isPhysicalUnit.mjs";import{physicalUnitsMap as l}from"../../utils/physicalUnitsMap.mjs";const o=(i,o,m)=>(i,n)=>{e.utils.validateOptions(n,s)&&i.walkDecls(i=>{if(!r(i.value))return;const u=a(i.value);if(u.some(e=>Array.isArray(o?.ignore)&&o?.ignore.includes(e)))return;const c=t.unexpectedUnit(u,u.map(e=>l[e]));m.fix?u.forEach(e=>i.value=i.value.replace(e,l[e])):e.utils.report({message:c,node:i,result:n,ruleName:s})})};o.ruleName=s,o.messages=t,o.meta=i;const m=e.createPlugin(s,o);export{m as default};