Skip to content

[Bug]: shorthandFirst and shorthandLast not working #3692

Open
@ngrcode

Description

@ngrcode

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

Metadata

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy