deno_lint docs

Showing 67 out of 83 rules

Requires overload signatures to be adjacent to each other.

View More

ban-ts-comment

Recommended

Disallows the use of Typescript directives without a comment.

View More

ban-types

Recommended

Bans the use of primitive wrapper objects (e.g. String the object is a

View More

Requires deno-lint-ignore to be annotated with one or more rule names.

View More

camelcase

Recommended

Enforces the use of camelCase in variable names

View More

Verifies the correct usage of constructors and calls to super().

View More

for-direction

Recommended

Requires for loop control variables to increment in the correct direction

View More

getter-return

Recommended

Requires all property getter functions to return a value

View More

Enforce conventional usage of array construction

View More

Requires that async promise executor functions are not used

View More

Requires lexical declarations (let, const, function and class) in

View More

no-class-assign

Recommended

Disallows modifying variables of class declarations

View More

Disallows comparing against negative zero (-0).

View More

no-cond-assign

Recommended

Disallows the use of the assignment operator, =, in conditional statements.

View More

Disallows the use of a constant expression in conditional test

View More

no-control-regex

Recommended

Disallows the use ascii control characters in regular expressions

View More

no-debugger

Recommended

Disallows the use of the debugger statement

View More

no-delete-var

Recommended

Disallows the deletion of variables

View More

no-dupe-args

Recommended

Disallows using an argument name more than once in a function signature

View More

Disallows using a class member function name more than once

View More

no-dupe-else-if

Recommended

Disallows using the same condition twice in an if/else if statement

View More

no-dupe-keys

Recommended

Disallows duplicate keys in object literals.

View More

Disallows using the same case clause in a switch statement more than once

View More

no-empty

Recommended

Disallows the use of empty block statements.

View More

Disallows using the empty character class in a regular expression

View More

Disallows the declaration of an empty interface

View More

no-empty-pattern

Recommended

Disallows the use of empty patterns in destructuring

View More

no-ex-assign

Recommended

Disallows the reassignment of exception parameters

View More

no-explicit-any

Recommended

Disallows use of the any type

View More

Disallows unnecessary boolean casts

View More

Disallows unnecessary non-null assertions

View More

no-extra-semi

Recommended

Disallows the use of unnecessary semi-colons

View More

no-fallthrough

Recommended

Disallows the implicit fallthrough of case statements

View More

no-func-assign

Recommended

Disallows the overwriting/reassignment of an existing function

View More

no-global-assign

Recommended

Disallows assignment to native Javascript objects

View More

no-import-assign

Recommended

Disallows reassignment of imported module bindings

View More

Disallows easily inferrable types

View More

Disallows variable or function definitions in nested blocks

View More

Disallows specifying invalid regular expressions in RegExp constructors

View More

Disallows the use of non-space or non-tab whitespace characters

View More

no-misused-new

Recommended

Disallows defining constructors for interfaces or new for classes

View More
no docs available

no-namespace

Recommended
no docs available

no-new-symbol

Recommended
no docs available

no-obj-calls

Recommended
no docs available

no-octal

Recommended
no docs available
no docs available

no-redeclare

Recommended
no docs available

no-regex-spaces

Recommended
no docs available

no-self-assign

Recommended
no docs available

no-setter-return

Recommended
no docs available
no docs available

no-this-alias

Recommended
no docs available
no docs available

no-undef

Recommended
no docs available

no-unreachable

Recommended
no docs available

Disallows the use of control flow statements within finally blocks.

View More
no docs available

no-unused-labels

Recommended
no docs available

no-with

Recommended
no docs available

prefer-as-const

Recommended
no docs available

prefer-const

Recommended
no docs available
no docs available

require-await

Recommended

Disallows async functions that have no await expression

View More

require-yield

Recommended
no docs available

use-isnan

Recommended
no docs available

valid-typeof

Recommended

Restricts the use of the typeof operator to a specific set of string literals.

View More