Skip to content

Coding style guide #730

Open
Open
@rubenthoms

Description

@rubenthoms

Basic styleguide: https://ts.dev/style/

However, the styleguide is not describing every use-case. There are some topics where we might want to differ. Feel free to add points to the list.

Functions

  • Named functions vs. arrow functions: when is it ok (debugging info) to use arrow functions and when should we definitely use named functions (e.g. return functions of useEffect) - what is the complexity/length threshold? -> arrow functions when one-liners, binding this context, and expressions

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

Status

Backlog 📝

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions