Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expect no-undef support comment declare like eslint #1287

Open
samegek opened this issue Jun 13, 2024 · 0 comments
Open

expect no-undef support comment declare like eslint #1287

samegek opened this issue Jun 13, 2024 · 0 comments

Comments

@samegek
Copy link

samegek commented Jun 13, 2024

it should ok, because gloabl decalre, but error
deno lint --rules-include=no-undef a.js

/* global a */
let b = 1
let c = a + b

output error[no-undef]: a is not defined

it should output error, a is not defined, but ok
use deno lint --rules-include=no-undef a.js

if(typeof a === "string"){console.log("hello")}
@samegek samegek changed the title expect support comment declare expect no-undef support comment declare like eslint Jun 13, 2024
@samegek samegek changed the title expect no-undef support comment declare like eslint expect no-undef support comment declare like eslint Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant