Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.37 KB

File metadata and controls

69 lines (52 loc) · 1.37 KB

function-name-arguments-whitelist

Specify a whitelist of allowed property and value pairs within declarations.

a { background-image: url('http://www.example.com/file.jpg'); }
/** ↑               ↑
 * These properties and these values */

Options

object: {"unprefixed-function-name": ["string", "/regex/", /regex/] }

Given:

["data", "/^http/"]

The following patterns are considered violations:

a { background-image: url('file://file.jpg'); }

The following patterns are not considered violations:

a { background-image: url('example.com/file.jpg'); }
a { background-image: url('/example.com/file.jpg'); }
a { background-image: url('//example.com/file.jpg'); }
a { background-image: url('./path/to/file.jpg'); }
a { background-image: url('http://www.example.com/file.jpg'); }
a { background-image: url('https://www.example.com/file.jpg'); }
a { background-image: url('HTTPS://www.example.com/file.jpg'); }
a { background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs='); }