Skip to content

function-name-case can easily break Sass custom functions if left at its default value (inherited from stylelint-config-standard) #231

@ArianeBouchardConformit

Description

The rule function-name-case is set to 'lower' in stylelint-config-standard. That makes a lot of sense in pure CSS, where functions are usually all lowercase.

But in Sass, you can create your own functions, and you can name them in camelCase if you want. This rule, being auto-fixable, is pretty dangerous when it comes to accidentally breaking user code.

The simplest fix I can imagine is to disable the rule ([ null ]) in this shareable config, so that people's Sass functions can't be broken, but there may be a smarter way to detect pure CSS functions and only activate the rule for those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions