import e from"../../../../../_virtual/index13.mjs";import{__require as r}from"../../utils/eachRoot.mjs";import{__require as t}from"../../utils/findCommentsInRaws.mjs";import{__require as s}from"../../utils/namespace.mjs";import{__require as n}from"../../utils/optionsHaveIgnored.mjs";import{__require as i}from"../../utils/ruleUrl.mjs";var o,l;function m(){if(l)return o;l=1;const{utils:m}=e,u=r(),a=t(),c=s(),d=n(),f=i(),p=c("double-slash-comment-inline"),_=m.ruleMessages(p,{expected:"Expected //-comment to be inline comment",rejected:"Unexpected inline //-comment"}),x={url:f(p)};function j(e,r){return(t,s)=>{m.validateOptions(s,p,{actual:e,possible:["always","never"]},{actual:r,possible:{ignore:["stylelint-commands"]},optional:!0})&&u(t,function(t){const n=t.source.input.css;if(""===n.trim())return;a(n).forEach(n=>{if("double-slash"!==n.type)return;if(0===n.text.indexOf("stylelint-")&&d(r,"stylelint-commands"))return;const i=n.inlineAfter||n.inlineBefore;let o;if(i&&"never"===e)o=_.rejected;else{if(i||"always"!==e)return;o=_.expected}m.report({message:o,node:t,index:n.source.start,endIndex:n.source.end+1,result:s,ruleName:p})})})}}return j.ruleName=p,j.messages=_,j.meta=x,o=j}export{m as __require};