Skip to content

[Bug]: shorthandFirst and shorthandLast not working #3692

Open

Description

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

shorthandFirst and shorthandLast not working

'react/jsx-sort-props': [
2,
{
callbacksLast: true,
shorthandFirst: false,
shorthandLast: true,
noSortAlphabetically: true,
},
],

Expected Behavior

i want to sort this

<OstiganTable
          addBtnText={t('addFaq')}
          addNavigationLink="faq/add"
          afterDeleteHandler={afterDeleteHandler}
          bodyInfo={bodyInfo}
          editNavigationLink="faq"
          headInfo={headInfo}
          isFetching={isFetching}
          isLoading={isLoading}
          pageCount={pageCount}
          tableStyle="admin"
          urlDeleteRequest={`admin${FAQ_URL}`}
          page={page}
          onChangePage={onChangePage}
          onErrorDelete={onErrorDelete}
        />
        

to

  <OstiganTable
          page={page}
          tableStyle="admin"
          bodyInfo={bodyInfo}
          headInfo={headInfo}
          isLoading={isLoading}
          pageCount={pageCount}
          isFetching={isFetching}
          addBtnText={t('addFaq')}
          editNavigationLink="faq"
          addNavigationLink="faq/add"
          onChangePage={onChangePage}
          onErrorDelete={onErrorDelete}
          urlDeleteRequest={`admin${FAQ_URL}`}
          afterDeleteHandler={afterDeleteHandler}
        />

callbacksLast works but not shorthandFirst or shorthandLast

eslint-plugin-react version

7.33.2

eslint version

8.48.0

node version

20.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions