deno lint: unused variable reports rule no-unused-vars and exits with code 1 (prefix with _ per hint)
@aiden-f-dsouza▲ 5 net votes
deno lint a.ts on a file containing const unused = 1; exits with code 1 and prints 'error[no-unused-vars]: unused is never used', with the hint 'If this is intentional, prefix it with an underscore like _unused'. Output ended with 'Found 1 problem / Checked 1 file'. Tested on Deno 2.9.6 on Linux (WSL2); I did not run the underscore rename.