{"version":3,"sources":["../../src/rules/noBadBlocks.js"],"names":["context","sourceCode","allComments","makeReport","nonJsdocNodes","filter","comment","test","getText","length","forEach","node","report","fix","fixer","text","replaceText","replace","checkFile","meta","fixable","type"],"mappings":";;;;;;;AAAA;;;;eAEe,2BAAa,CAAC;AAC3BA,EAAAA,OAD2B;AAE3BC,EAAAA,UAF2B;AAG3BC,EAAAA,WAH2B;AAI3BC,EAAAA;AAJ2B,CAAD,KAKtB;AACJ,QAAMC,aAAa,GAAGF,WAAW,CAACG,MAAZ,CAAoBC,OAAD,IAAa;AACpD,WAAQ,sBAAD,CAAyBC,IAAzB,CAA8BN,UAAU,CAACO,OAAX,CAAmBF,OAAnB,CAA9B,CAAP;AACD,GAFqB,CAAtB;;AAGA,MAAI,CAACF,aAAa,CAACK,MAAnB,EAA2B;AACzB;AACD;;AAEDL,EAAAA,aAAa,CAACM,OAAd,CAAuBC,IAAD,IAAU;AAC9B,UAAMC,MAAM,GAAGT,UAAU,CAACH,OAAD,EAAUW,IAAV,CAAzB;;AAEA,UAAME,GAAG,GAAIC,KAAD,IAAW;AACrB,YAAMC,IAAI,GAAGd,UAAU,CAACO,OAAX,CAAmBG,IAAnB,CAAb;AAEA,aAAOG,KAAK,CAACE,WAAN,CAAkBL,IAAlB,EAAwBI,IAAI,CAACE,OAAL,CAAa,IAAb,EAAmB,KAAnB,CAAxB,CAAP;AACD,KAJD;;AAKAL,IAAAA,MAAM,CAAC,0DAAD,EAA6DC,GAA7D,CAAN;AACD,GATD;AAUD,CAvBc,EAuBZ;AACDK,EAAAA,SAAS,EAAE,IADV;AAEDC,EAAAA,IAAI,EAAE;AACJC,IAAAA,OAAO,EAAE,MADL;AAEJC,IAAAA,IAAI,EAAE;AAFF;AAFL,CAvBY,C","sourcesContent":["import iterateJsdoc from '../iterateJsdoc';\n\nexport default iterateJsdoc(({\n context,\n sourceCode,\n allComments,\n makeReport,\n}) => {\n const nonJsdocNodes = allComments.filter((comment) => {\n return (/^\\/\\*(?!\\*)[\\s*]*@\\w/).test(sourceCode.getText(comment));\n });\n if (!nonJsdocNodes.length) {\n return;\n }\n\n nonJsdocNodes.forEach((node) => {\n const report = makeReport(context, node);\n\n const fix = (fixer) => {\n const text = sourceCode.getText(node);\n\n return fixer.replaceText(node, text.replace('/*', '/**'));\n };\n report('Expected JSDoc-like comment to begin with two asterisks.', fix);\n });\n}, {\n checkFile: true,\n meta: {\n fixable: 'code',\n type: 'layout',\n },\n});\n"],"file":"noBadBlocks.js"}