UNPKG

eslint-plugin-de-morgan

Version:

ESLint plugin for transforming negated boolean expressions via De Morgan’s laws

9 lines (8 loc) 299 B
/** * Prepares a code snippet for display in error messages by removing comments * and normalizing whitespace to a single line. * * @param code - The code snippet to clean. * @returns The cleaned single-line code without comments. */ export declare function sanitizeCode(code: string): string