Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ignore-pattern not followed in sort-objects #104

Open
2 tasks done
ArthurGuez opened this issue Feb 14, 2024 · 0 comments
Open
2 tasks done

Bug: ignore-pattern not followed in sort-objects #104

ArthurGuez opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ArthurGuez
Copy link

ArthurGuez commented Feb 14, 2024

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/or styled-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 difference

ESLint version

v8.56.0

ESLint Plugin Perfectionist version

v2.5.0

Additional comments

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@ArthurGuez ArthurGuez added the bug Something isn't working label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant