
echo -e "foo()\nlet x" > test.js
deno lint test.js
Deno lint finds the unused "x" but it doesn't warn me that I forgot to import foo().
If I try eslint (npx eslint test.js) instead, it immediately says:
1:1 error 'foo' is not defined no-undef
i'm using deno 2.0.6