feat(mint): add logical properties migration audit types and mapping - #112
Draft
nujovich wants to merge 5 commits into
Draft
feat(mint): add logical properties migration audit types and mapping#112nujovich wants to merge 5 commits into
nujovich wants to merge 5 commits into
Conversation
Owner
Author
|
All milestones complete. Ready for review when you are. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Card: https://github.com/nujovich/mint-radar/issues/19
What: Adds a deterministic logical properties migration audit to Mint. Milestone 1 introduces the
LogicalPropertyIssue,LogicalPropertyAudit, andPHYSICAL_TO_LOGICALmapping types inlib/types.ts, plus thelogicalPropertiesfield onAuditReport. The mapping covers 30+ physical CSS properties and their flow-relative equivalents (e.g.margin-left->margin-inline-start,padding-right->padding-inline-end,left->inset-inline-start), plus directional keyword mappings (text-align: left->text-align: start). Future milestones will implement the parser, wire CLI output, and add Stylelint 17.10-aligned tests.Why: Stylelint 17.10 standardized logical property enforcement with three new rules (
property-layout-mappings,unit-layout-mappings,value-keyword-layout-mappings). Mint's CSS audit needs a deterministic analyzer that detects physical directional properties and guides users toward flow-relative equivalents for automatic RTL/LTR and writing-mode support. The deterministic approach complements the existing LLM-based STEP 14 analysis (from card #10) by providing instant, syntax-level detection without LLM latency or cost.Milestones
LogicalPropertyIssue,LogicalPropertyAudit, andPHYSICAL_TO_LOGICALmapping tolib/types.ts; addlogicalPropertiesfield toAuditReportlintLogicalProperties()inlib/css-lint-rules.mjs: parse CSS, detect physical properties where flow-relative equivalents exist, emit issues with selectors and suggestionslogicalPropertiesintobin/mint-ds.mjsCLI output andaudit-summary.mjsas a lint category with migration ratio displayHow to test: