You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: false-positive orphaned CSS for CSS-module class accessors (#48)
* cowork-bot: fix false-positive orphaned CSS for CSS-module class accessors
Detect and treat `styles.card` / `styles['card-hover']` (the canonical
Next.js/React CSS-module consumption pattern) as used classes. Previously
every *.module.css class was reported as orphaned and marked removable=True,
which could delete live styles. Bracket accessors are recognized and
non-module object access (util.foo) is not over-matched.
Adds TestCSSModuleUsage regression tests; all 116 tests pass, ruff clean.
Co-Authored-By: cowork-bot <cowork-bot@users.noreply.github.com>
* fix: remove unused _CLASSLIST_PATTERN (dead code in CSS-module fix)
---------
Co-authored-by: cowork-bot <cowork-bot@users.noreply.github.com>
0 commit comments