Skip to content

react/jsx-sort-props not working #1320

@tobyf93

Description

@tobyf93

I seem to be having trouble getting this rule to work. The documentation references the following interface:

"react/jsx-sort-props": [<enabled>, {
  "callbacksLast": <boolean>,
  "shorthandFirst": <boolean>,
  "shorthandLast": <boolean>,
  "ignoreCase": <boolean>,
  "noSortAlphabetically": <boolean>,
  "reservedFirst": <boolean>|<array<string>>,
}]

My current configuration is "react/jsx-sort-props": [2]. I have omitted the options which seem to work fine for other rules in the library. Don't get any errors for the following component:

<Component c="c" b="b" a="a" />

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions