-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
While Stylelint generally works as expected (e.g., linting a minimal valid rule like .sample {}), it fails to treat sources that are logically equivalent to an empty string "" as empty. This happens despite Stylelint's straightforward check of if (rootString.trim()), which should detect and handle empty sources correctly. The root cause is unclear, but it is suspected that the parser may be misconstructing the AST in a way that prevents Stylelint from correctly recognizing the source as empty. Further investigation into how the AST is constructed and passed to Stylelint is needed to identify the exact issue.
A matching issue is submitted in the stylelint repo. See stylelint/stylelint#8135
luangong
Metadata
Metadata
Assignees
Labels
No labels