Ignore deno rule

// deno-lint-ignore no-undef
document.getElementById('root')

Ignore TypeScript rule

See Ignoring rules in the TypeScript section of Dev Cheatsheets.

Semantic checking

Must be at the top of a file.

Enable:

// @ts-check

Disable:

// @ts-no-check