Skip to content

deno lint doesn't detect that I forgot to import "foo" before calling foo() #1342

@mo

Description

@mo

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions