typescript-eslint / tslint-to-eslint-config

Converts your TSLint configuration to the closest possible ESLint equivalent. 🚀
MIT License
847 stars 100 forks source link

typescript-eslint/prefer-function-type might be enough for prefer-method-signature #936

Open rgant opened 3 years ago

rgant commented 3 years ago

🐛 Bug Report

Actual Behavior

Expected Behavior

Use https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/prefer-function-type.md for this rule.

Reproduction

tslint.json:

{ "rules": { "prefer-method-signature": true } }
JoshuaKGoldberg commented 3 years ago

Thanks for reporting @rgant!

Looking through the docs, it seems like the TSLint prefer-method-signature rule looks at the methods declared on objects, while the typescript-eslint prefer-function-type rule is more about using a type =? Is there much overlap between them?