Skip to content

Conversation

@xbinaryx
Copy link
Contributor

@xbinaryx xbinaryx commented Aug 1, 2025

Prerequisites checklist

What is the purpose of this pull request?

This PR fixes a false positive error in the relative-font-units rule where uppercase CSS units like 1REM, 1EM, etc. were being incorrectly flagged as errors. According to the CSS specification, units are case-insensitive, so REM should be equivalent to rem.

What changes did you make? (Give an overview)

  • Modified the relative-font-units rule to convert the CSS units to lowercase before comparison
  • Added test cases to verify case-insensitive unit matching works correctly

Related Issues

Fixes #215

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

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Aug 1, 2025
@eslint-github-bot eslint-github-bot bot added the bug Something isn't working label Aug 1, 2025
@lumirlumir lumirlumir added the accepted There is consensus among the team that this change meets the criteria for inclusion label Aug 2, 2025
@nzakas nzakas moved this from Needs Triage to Implementing in Triage Aug 4, 2025
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@nzakas nzakas merged commit 7a2ecad into eslint:main Aug 4, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from Implementing to Complete in Triage Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion bug Something isn't working contributor pool

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

Rule Change: Make relative-font-units unit matching case-insensitive

3 participants