Skip to content

feat: add CSS unit baseline checking#403

Open
ryo-manba wants to merge 1 commit intoeslint:mainfrom
ryo-manba:feat/unit-baseline-checking
Open

feat: add CSS unit baseline checking#403
ryo-manba wants to merge 1 commit intoeslint:mainfrom
ryo-manba:feat/unit-baseline-checking

Conversation

@ryo-manba
Copy link
Contributor

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

Add baseline checking for CSS units (svh, dvh, cqw, etc.) to the use-baseline rule.

What changes did you make? (Give an overview)

  • Extract unit data from web-features package via css.types.length.* BCD keys in tools/generate-baseline.js
  • Add unit checking logic to src/rules/use-baseline.js (Dimension node handling, @supports guard support)
  • Add allowUnits option to suppress specific unit warnings

Related Issues

fixes #402

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Mar 20, 2026
@ryo-manba ryo-manba marked this pull request as ready for review March 20, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

Rule Change: use-baseline should check CSS units

1 participant