I'm using Panda CSS to write my CSS and use an object syntax.
I'd like sort-objects to ignore those objects since I have my own way of sorting them.
However, using the options provided (ignore-pattern and/or styled-components) doesn't work as expected.
Describe the bug
Hi there,
I'm using Panda CSS to write my CSS and use an object syntax.
I'd like
sort-objects
to ignore those objects since I have my own way of sorting them. However, using the options provided (ignore-pattern
and/orstyled-components
) doesn't work as expected.Code example
My class :
const headerClass = css({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginTop: '3', gridGap: '8', });
My rule config :
"perfectionist/sort-objects": [ "error", { "ignore-pattern": ["*Class"], "styled-components": false } ],
Having
"styled-components": true
makes no differenceESLint version
v8.56.0
ESLint Plugin Perfectionist version
v2.5.0
Additional comments
No response
Validations