{"version":3,"file":"is-semantic-comment.cjs","sources":["../../../src/utils/is-semantic-comment.ts"],"sourcesContent":["import type { TSESTree } from \"@typescript-eslint/utils\";\n\nexport function isSemanticComment(\n  comment: TSESTree.BlockComment | TSESTree.LineComment,\n  semanticComments?: string[],\n): boolean {\n  const includesCustomSemanticComment =\n    semanticComments?.some((semanticComment) =>\n      comment.value.includes(semanticComment),\n    ) || false;\n\n  return (\n    comment.value.includes(\"eslint-disable\") ||\n    comment.value.includes(\"stylelint-disable\") ||\n    comment.value.includes(\"tslint:disable\") ||\n    comment.value.includes(\"eslint-enable\") ||\n    comment.value.includes(\"stylelint-enable\") ||\n    comment.value.includes(\"tslint:enable\") ||\n    includesCustomSemanticComment\n  );\n}\n"],"names":[],"mappings":";;AAEO,SAAS,iBAAA,CACd,SACA,gBAAA,EACS;AACT,EAAA,MAAM,gCACJ,gBAAA,EAAkB,IAAA;AAAA,IAAK,CAAC,eAAA,KACtB,OAAA,CAAQ,KAAA,CAAM,SAAS,eAAe;AAAA,GACxC,IAAK,KAAA;AAEP,EAAA,OACE,OAAA,CAAQ,KAAA,CAAM,QAAA,CAAS,gBAAgB,CAAA,IACvC,OAAA,CAAQ,KAAA,CAAM,QAAA,CAAS,mBAAmB,CAAA,IAC1C,OAAA,CAAQ,KAAA,CAAM,QAAA,CAAS,gBAAgB,CAAA,IACvC,OAAA,CAAQ,KAAA,CAAM,QAAA,CAAS,eAAe,CAAA,IACtC,OAAA,CAAQ,KAAA,CAAM,QAAA,CAAS,kBAAkB,CAAA,IACzC,OAAA,CAAQ,KAAA,CAAM,QAAA,CAAS,eAAe,CAAA,IACtC,6BAAA;AAEJ;;;;"}