MCPcopy Create free account
hub / github.com/angular/components / stripCommentsAndAtUse

Function stripCommentsAndAtUse

tools/stylelint/no-unused-import.ts:12–17  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

10});
11
12function stripCommentsAndAtUse(content: string) {
13 return content
14 .replace(/@use.*?;/g, '')
15 .replace(/\/\/.*?\n/g, '')
16 .replace(/\/\*.*?\*\//g, '');
17}
18
19/** Stylelint plugin that flags unused `@use` statements. */
20const ruleFn: Rule<boolean, string> = (isEnabled, _options, context) => {

Callers 1

ruleFnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected