Note: linter is a new feature and still unstable thus it requires flag

    • adjacent-overload-signatures
    • ban-ts-comment
    • ban-types
    • ban-untagged-ignore
    • constructor-super
    • for-direction
    • getter-return
    • no-array-constructor
    • no-async-promise-executor
    • no-case-declarations
    • no-class-assign
    • no-compare-neg-zero
    • no-cond-assign
    • no-constant-condition
    • no-control-regex
    • no-debugger
    • no-delete-var
    • no-dupe-args
    • no-dupe-class-members
    • no-dupe-else-if
    • no-dupe-keys
    • no-duplicate-case
    • no-empty
    • no-empty-character-class
    • no-empty-pattern
    • no-ex-assign
    • no-extra-boolean-cast
    • no-extra-non-null-assertion
    • no-extra-semi
    • no-fallthrough
    • no-func-assign
    • no-global-assign
    • no-import-assign
    • no-inferrable-types
    • no-inner-declarations
    • no-invalid-regexp
    • no-irregular-whitespace
    • no-misused-new
    • no-mixed-spaces-and-tabs
    • no-namespace
    • no-new-symbol
    • no-obj-calls
    • no-octal
    • no-prototype-builtins
    • no-redeclare
    • no-regex-spaces
    • no-self-assign
    • no-setter-return
    • no-shadow-restricted-names
    • no-this-alias
    • no-this-before-super
    • no-unreachable
    • no-unsafe-finally
    • no-unused-labels
    • no-with
    • prefer-as-const
    • prefer-namespace-keyword
    • require-yield
    • triple-slash-reference
    • use-isnan
    • valid-typeof

    Ignore directives

    Files

    To ignore whole file // deno-lint-ignore-file directive should placed at the top of the file:

    1. // deno-lint-ignore-file
    2. function foo(): any {
    3. // ...
    4. }

    You can also ignore certain diagnostics in the whole file

    1. // deno-lint-ignore-file no-explicit-any no-empty
    2. function foo(): any {
    3. // ...
    4. }

    Diagnostics

    To provide some compatibility with ESLint deno lint also supports // eslint-disable-next-line directive. Just like with // deno-lint-ignore, it’s required to specify the ignored rule name:

    1. // eslint-disable-next-line no-empty
    2. while (true) {}
    3. // eslint-disable-next-line @typescript-eslint/no-explicit-any
    4. function bar(a: any) {
    5. }