MCPcopy Create free account
hub / github.com/Effect-TS/effect / isSkippableDirectiveComment

Function isSkippableDirectiveComment

packages/tools/jsdocs/src/Jsdocs.ts:865–872  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

863}
864
865function isSkippableDirectiveComment(line: string): boolean {
866 const trimmed = line.trim()
867 return trimmed.startsWith("// @ts-expect-error") ||
868 trimmed.startsWith("// @ts-ignore") ||
869 trimmed.startsWith("// @effect-diagnostics") ||
870 trimmed.startsWith("// eslint-disable-next-line") ||
871 trimmed.startsWith("// oxlint-disable-next-line")
872}
873
874function skipDirectiveComments(source: string, end: number): number {
875 while (end > 0) {

Callers 2

skipDirectiveCommentsFunction · 0.85
skipLeadingIgnoredTriviaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected