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

[member-ordering] feature request: differentiate methods and callback signatures #3037

Closed
3 tasks done
tao-cumplido opened this issue Feb 11, 2021 · 1 comment · Fixed by #3354
Closed
3 tasks done
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@tao-cumplido
Copy link

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

{
  "rules": {
    "@typescript-eslint/member-ordering": ["error"]
  }
}
interface X {
  (): void;
  a:  unknown;
  b(): void;
}

Expected Result

Have an option to differentiate callback signatures from methods for ordering, similar to the signature and *-field options

Actual Result

3:3 - Member a should be declared before all method definitions.(@typescript-eslint/member-ordering)

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 4.15.0
@typescript-eslint/parser 4.15.0
TypeScript 4.1.5
ESLint 7.19.0
node 14.15.5
@tao-cumplido tao-cumplido added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Feb 11, 2021
@bradzacher bradzacher added enhancement: plugin rule option New rule option for an existing eslint-plugin rule and removed triage Waiting for maintainers to take a look labels Feb 11, 2021
@tanohzana
Copy link
Contributor

I can work on this. I'll need about 2 weeks 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
3 participants