Sha256: 93813ccdbb1c536bebe99f6d56f4bbc5c57730b6e8c601cb8d52da8a9d5d299c
Contents?: true
Size: 939 Bytes
Versions: 24
Compression:
Stored size: 939 Bytes
Contents
# function-calc-no-unspaced-operator Disallow an unspaced operator within `calc` functions. <!-- prettier-ignore --> ```css a { top: calc(1px + 2px); } /** ↑ * The space around this operator */ ``` Before the operator, there must be a single whitespace or a newline plus indentation. After the operator, there must be a single whitespace or a newline. ## Options ### `true` The following patterns are considered violations: <!-- prettier-ignore --> ```css a { top: calc(1px+2px); } ``` <!-- prettier-ignore --> ```css a { top: calc(1px+ 2px); } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { top: calc(1px + 2px); } ``` <!-- prettier-ignore --> ```css a { top: calc(calc(1em * 2) / 3); } ``` <!-- prettier-ignore --> ```css a { top: calc(var(--foo) + var(--bar)); } ``` <!-- prettier-ignore --> ```css a { top: calc(var(--foo) + var(--bar)); } ```
Version data entries
24 entries across 24 versions & 1 rubygems