Skip to content

Bug: variable hoisting ignored in rule "css/no-invalid-properties"Β #199

@Otlikov

Description

@Otlikov

Environment

ESLint version: 9.31.0
@eslint/css version: 0.10.0
Node version: 24.4.0
npm version: 11.4.2
Operating System: macOS 15.5 (24F74)

Which language are you using?

stylesheet

What did you do?

Configuration
css/no-invalid-properties: ["error"]
/* eslint css/no-invalid-properties: ["error"] */

.test {
	color: var(--myColor);
}

:root {
	--myColor: blue;
}

What did you expect to happen?

No error as the definition of variable --myColor should be hoisted.

What actually happened?

Can't validate with unknown variable '--myColor'

Link to Minimal Reproducible Example

none

Participation

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

Additional comments

No response

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionbugSomething isn't working

Type

No type

Projects

Status

Blocked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions