Skip to content

Fix at-rule-no-unknown false positives for @function #8843

@Mouvedia

Description

@Mouvedia

What minimal example or steps are needed to reproduce the bug?

@function --foo() {}

What minimal configuration is needed to reproduce the bug?

{
  "rules": {
    "at-rule-no-unknown": true
  }
}

How did you run Stylelint?

demo

Which Stylelint-related dependencies are you using?

{
  "stylelint": "latest"
}

Resources

support : https://caniuse.com/wf-function
spec: https://drafts.csswg.org/css-mixins-1/#function-rule
related: #1612

What actually happened?

Unexpected unknown at-rule "@function" (at-rule-no-unknown)

Do you have a proposal to fix the bug?

update https://github.com/stylelint/stylelint/blob/main/lib/reference/atKeywords.mjs

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions