(content: string)
| 10 | }); |
| 11 | |
| 12 | function 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. */ |
| 20 | const ruleFn: Rule<boolean, string> = (isEnabled, _options, context) => { |