I am seeking a TypeScript or ESLint rule that enforces the usage of return values from functions. For example:
const getNum = () => 12
This rule should allow me to call the function and store the returned value like this:
const a = getNum()
However, it should not permit calling the function without storing the return value:
getNum()
Currently, I am exploring libraries such as neverthrow or ts-results. In my experience, when I return a result