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]: shorthandFirst and shorthandLast not working #3692

Open
2 tasks done
ngrcode opened this issue Feb 19, 2024 · 0 comments
Open
2 tasks done

[Bug]: shorthandFirst and shorthandLast not working #3692

ngrcode opened this issue Feb 19, 2024 · 0 comments
Labels

Comments

@ngrcode
Copy link

ngrcode commented Feb 19, 2024

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

@ngrcode ngrcode added the bug label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant