biomejs / biome

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

Home Page:https://biomejs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement a lint rule to highlight the deprecated `@value` at-rule.

denbezrukov opened this issue · comments

Implement no-value-at-rule.

Many tools, such as lightningcss and swc, consider the @value at-rule deprecated in favor of CSS variables.

References:

Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.

Hi @togami2864 ,

Could you please help me with this? Do you have any thoughts or suggestions?

Thank you!

commented

Should this rule only apply to files with .module.css🤔

Should this rule only apply to files with .module.css🤔

Hmm, interesting. We have a project with css modules but we don't write .module.css.
I think it’s better to analyze all .css files, but the rule must work only if the option is enabled.

commented

I think it’s better to analyze all .css files, but the rule must work only if the option is enabled.

Makes sense. We can ignore when the option is disabled since the parser will give a warning.
https://biomejs.dev/playground/?lineWidth=120&files.main.css=QAB2AGEAbAB1AGUAIABiAGwAdQBlADoAIAAjADAAYwA3ADcAZgA4ADsA

@denbezrukov interested in contributing this change.