import{isRoot as e}from"../../utils/typeGuards.mjs";import s from"../../utils/isStandardSyntaxRule.mjs";import t from"../../utils/report.mjs";import r from"../../utils/ruleMessages.mjs";import l from"../../utils/validateOptions.mjs";const u="block-no-redundant-nested-style-rules",o=r(u,{rejected:"Unexpected redundant nested style rule"}),a=r=>(a,m)=>{l(m,u,{actual:r,possible:[!0]})&&a.walkRules(r=>{if(!s(r))return;const{parent:l,selector:a}=r;"&"===a&&l&&(e(l)||t({message:o.rejected,messageArgs:[],node:r,result:m,ruleName:u}))})};a.ruleName=u,a.messages=o,a.meta={url:"https://stylelint.io/user-guide/rules/block-no-redundant-nested-style-rules"};export{a as default};