Sha256: 4f1d3a5cf8fd2060a72dd306516c81e61c752b8595d11548af7a4703bb763015
Contents?: true
Size: 1.88 KB
Versions: 24
Compression:
Stored size: 1.88 KB
Contents
# function-comma-newline-after Require a newline or disallow whitespace after the commas of functions. <!-- prettier-ignore --> ```css a { transform: translate(1, 1) } /* ↑ */ /** ↑ * These commas */ ``` The [`fix` option](../../../docs/user-guide/usage/options.md#fix) can automatically fix all of the problems reported by this rule. ## Options `string`: `"always"|"always-multi-line"|"never-multi-line"` ### `"always"` There _must always_ be a newline after the commas. The following patterns are considered violations: <!-- prettier-ignore --> ```css a { transform: translate(1,1) } ``` <!-- prettier-ignore --> ```css a { transform: translate(1 ,1) } ``` <!-- prettier-ignore --> ```css a { transform: translate(1 ,1) } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { transform: translate(1, 1) } ``` ### `"always-multi-line"` There _must always_ be a newline after the commas in multi-line functions. The following patterns are considered violations: <!-- prettier-ignore --> ```css a { transform: translate(1 ,1) } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { transform: translate(1,1) } ``` <!-- prettier-ignore --> ```css a { transform: translate(1 ,1) } ``` <!-- prettier-ignore --> ```css a { transform: translate(1, 1) } ``` ### `"never-multi-line"` There _must never_ be whitespace after the commas in multi-line functions. The following patterns are considered violations: <!-- prettier-ignore --> ```css a { transform: translate(1 , 1) } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { transform: translate(1, 1) } ``` <!-- prettier-ignore --> ```css a { transform: translate(1 , 1) } ``` <!-- prettier-ignore --> ```css a { transform: translate(1 ,1) } ```
Version data entries
24 entries across 24 versions & 1 rubygems