Skip to content

[feature] enable @typescript-eslint/member-ordering in @tinkoff/eslint-config #147

Open
SuperOleg39 opened this issue Nov 18, 2021 · 0 comments

Comments

@SuperOleg39
Copy link
Contributor

@typescript-eslint/member-ordering is disabled by default

And sort-class-members rules works for typescript code.

It is a problem, because eslint-plugin-sort-class-members didn't respect many typescript features.

Also, sort-class-members rules is very React class components specific.

Looks like we need to few changes:

  1. Update and enable @typescript-eslint/member-ordering rules for TS code
  2. Move React specific sort-class-members rules from @tinkoff/eslint-config to @tinkoff/eslint-config-react, only for js/jsx files
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant