import{assert as e}from"../../utils/validateTypes.mjs";import t from"../../utils/getImportantPosition.mjs";import r from"../../utils/report.mjs";import s from"../../utils/ruleMessages.mjs";import o from"../../utils/validateOptions.mjs";const i="declaration-no-important",m=s(i,{rejected:"Unexpected !important"}),a=s=>(a,n)=>{o(n,i,{actual:s})&&a.walkDecls(s=>{if(!s.important)return;const o=t(s.toString());e(o),r({message:m.rejected,messageArgs:[],node:s,index:o.index,endIndex:o.endIndex,result:n,ruleName:i})})};a.ruleName=i,a.messages=m,a.meta={url:"https://stylelint.io/user-guide/rules/declaration-no-important"};export{a as default};