ChromatixAU / stylelint-config-chromatix

Chromatix custom config for stylelint. Based heavily on the WordPress Coding Standards but with some of our own too.
https://www.chromatix.com.au
MIT License
3 stars 0 forks source link

function-parentheses-space-inside & function-comma-space-after break on multiline function calls #8

Open tdmalone opened 6 years ago

tdmalone commented 6 years ago

Given this Sass:

// Find the next index.
$index: str-index(
  if($case-sensitive, $to-parse, to-lower-case($to-parse)),
  if($case-sensitive, $to-search, to-lower-case($to-search))
);

stylelint-config-chromatix reports that whitespace is not expected inside the parens, and that a single space is expected after the comma.

function-parentheses-space-inside should exclude newlines, and function-comma-space-after should allow newlines.