I am looking for a typescript or eslint rule I can use to force using return values from functions. Eg
const getNum = () => 12
The rule should allow me to call it and store the value like
const a = getNum()
But I should not be able to do
getNum()
I am currently experimenting with libraries like neverthrow or ts-results and at this moment if I return a result<ok, err> the consumer is still able to call a function without handling errors, especially when the ok part is just an success result.