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

Making return types for functions excplicit #14

Open
kbsaid opened this issue Oct 19, 2022 · 0 comments
Open

Making return types for functions excplicit #14

kbsaid opened this issue Oct 19, 2022 · 0 comments

Comments

@kbsaid
Copy link

kbsaid commented Oct 19, 2022

Adding a new eslint rule for our typescript backend projects:

"@typescript-eslint/explicit-function-return-type": "error"
A lot of our backend solutions don't have any explicit rule for return types for our functions. This makes at times harder to read what functions actually return and can potentially cause confusion. There is a reason to why we use typeScript in the backend, and mixing it with non types makes often times our backend solution not consistent with our Guide of how we develope and write code in 24sevenoffice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant