Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1011 Bytes

no-global-function-names.md

File metadata and controls

41 lines (28 loc) · 1011 Bytes

Pattern: Use of global function name

Issue: -

Description

Disallows the use of global function names, as these global functions are now located inside built-in Sass modules.

A full list of disallowed names (and their alternatives) is located here

It is recommended to use the Sass migrator to change these global function names automatically.

Examples

@use "sass:color";
a {
    background: color.adjust(#6b717f, $red: 15);
}

The following patterns are considered warnings:

a {
    background: adjust-color(#6b717f, $red: 15);
}

The following patterns are not considered warnings:

@use "sass:color";
a {
    background: color.adjust(#6b717f, $red: 15);
}

Further Reading