ESLint rule to prevent passing an await statement as a function argument
setToken(await getToken); Is there an eslint rule that would warn/error for code like this? I’d rather have it written like: const newToken = await getToken(); setToken(newToken); reactjs typescript eslint typescript-eslint
TypeScript, ESLint and unused value
Here’s my type for a project that uses Google Maps. onMarkerAdd is a callback function, which returns nothing and changes the state, as you can see below.