dotkom / design-system

Component library, maybe
https://design.online.ntnu.no
MIT License
4 stars 4 forks source link

Every single component suffers from the same warning #107

Closed plusk closed 4 years ago

plusk commented 4 years ago

Missing return type on function.eslint(@typescript-eslint/explicit-function-return-type)

FluidSense commented 4 years ago

We could change this rule, but it is nice to have a return type on most functions, although components are usually pretty straight forward. Another solution is to set JSX.Element as return-type

plusk commented 4 years ago

Setting a return type is the correct answer, I just didn't have any luck with using Element earlier.