property-objectAn object on a key that names a property, not a variant.
csszyx check lists it.A name in angle brackets is a value the message fills in.
[csszyx] property-object: `<key>` sets a property and is not a variant, so its object `{ <nestedKeys> }` emits `<key>:*` classes that produce no CSS.
help: move the nested keys up a level; for colour opacity, write `{ color: '…', op: … }`.
docs: https://csszyx.com/e/property-object
Default: error under recommended, error under atomic. Set it in csszyx.config: rules: { 'property-object': 'warn' }.
The level sets how the build and csszyx check report it. It does not change a console line, and it does not stop a thrown error.
The values this diagnostic names.
| Name | Type | |
|---|---|---|
key | string | |
nestedKeys | string[] |