You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSX properties are missed when checking ignore rule pattern
Describe the problem
When we are using React as a framework and added perfectionist which sorts object keys, the pattern for ignore sorting does not check the JSX prop names when the object is passed directly to the component.
Code example
<Table//This one shouldn't be sortedcolumns={{firstCol: "COL 1",secondCol: "COL 2",thirdCol: "COL 3",fourhtCol: "COL 4"}}/>
hstemplewski
changed the title
Feature: Add checking JSX properties in sort-object
Feature: Add checking ignore patterns for JSX properties name in sort-object
Dec 7, 2023
What rule do you want to change?
JSX properties are missed when checking ignore rule pattern
Describe the problem
When we are using React as a framework and added perfectionist which sorts object keys, the pattern for ignore sorting does not check the JSX prop names when the object is passed directly to the component.
Code example
the rule is applied like:
Additional comments
I think this one needs to be changes from
to (or sth simmillar)
Validations
The text was updated successfully, but these errors were encountered: