Skip to content

Add ignore: ["with-var-inside"] to color-function-notation #6620

Closed
@boris-petrov

Description

What steps are needed to reproduce the bug?

div {
  background-color: rgba(var(--bs-primary-rgb), 0.4);
}

What Stylelint configuration is needed to reproduce the bug?

{
  "ignoreFiles": ["**/*"],
  "overrides": [
    {
      "files": ["**/*.css"],
      "extends": ["stylelint-config-standard", "stylelint-config-prettier"],
      "rules": {}
    },
    {
      "files": ["**/*.scss"],
      "extends": ["stylelint-config-standard-scss", "stylelint-config-prettier"],
      "rules": {}
    }
  ],
  "rules": {}
}

How did you run Stylelint?

stylelint app/styles

Which version of Stylelint are you using?

14.16.1

What did you expect to happen?

No error/warning showing since the syntax is correct.

What actually happened?

An error is reported.

Does the bug relate to non-standard syntax?

No response

Proposal to fix the bug

Maybe related to #5671.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someonesubtype: new optiona new option for an existing rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions