Skip to content

Bug: css/no-invalid-at-rules doesn't recognize font-variant-numeric and font-feature-settings #433

Open

Description

@kuchta

Environment

Node version: 24.14.0
pnpm version: 11.0.0
Local ESLint version: 10.2.1
@eslint/css version: 1.1.0
Operating System: macOS

What parser are you using?

@typescript-eslint/parser

What did you do?

In a project using latest tailwind version I have a global app.css where I defined new tailwind @Utility

@utility font-mono {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

What did you expect to happen?

No error

What actually happened?

errors:
css/no-invalid-at-rules: Unknown descriptor 'font-variant-numeric' found for at-rule '@Utility'
css/no-invalid-at-rules: Unknown descriptor 'font-feature-settings' found for at-rule '@Utility'

Link to Minimal Reproducible Example

Participation

  • I am willing to submit a pull request for this issue.

AI acknowledgment

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

Additional comments

No response

Activity

  1. transferred this issue fromeslint/eslinton Apr 29, 2026
  2. DMartens commented on Apr 29, 2026

    @DMartens
    Contributor

    Thank you for reporting this.
    The problem seems to be that the rule uses the descriptor data for the validation which is missing for @utility.
    Leaving this issue open so we can add an regression test if the descriptor is added to tailwind-csstree.

  3. moved this from Needs Triage to Blocked in Triageon Apr 29, 2026
  4. self-assigned this
    on Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcss-tree

Type

No type

Projects

  • Status
    Blocked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions