import{isString as e,isRegExp as t}from"../../utils/validateTypes.mjs";import s from"../../utils/getRuleSelector.mjs";import r from"../../utils/isStandardSyntaxRule.mjs";import i from"../../utils/matchesStringOrRegExp.mjs";import l from"../../utils/parseSelector.mjs";import m from"../../utils/report.mjs";import o from"../../utils/ruleMessages.mjs";import a from"../../utils/validateOptions.mjs";const u="selector-attribute-name-disallowed-list",n=o(u,{rejected:e=>`Unexpected name "${e}"`}),d=o=>(d,p)=>{a(p,u,{actual:o,possible:[e,t]})&&d.walkRules(e=>{r(e)&&e.selector.includes("[")&&l(s(e),p,e)?.walkAttributes(t=>{const s=t.qualifiedAttribute;if(!i(s,o))return;const r=t.sourceIndex+t.offsetOf("attribute"),l=r+s.length;m({message:n.rejected,messageArgs:[s],node:e,index:r,endIndex:l,result:p,ruleName:u})})})};d.primaryOptionArray=!0,d.ruleName=u,d.messages=n,d.meta={url:"https://stylelint.io/user-guide/rules/selector-attribute-name-disallowed-list"};export{d as default};