Skip to main content

Idiomatic

Rules that enforce idiomatic code.

IDSummary
ambiguous-scope

Ambiguous metadata scope

boolean-assignment

Prefer if over boolean assignment

custom-has-key-construct

Custom function may be replaced by in and object.keys

custom-in-construct

Custom function may be replaced by in keyword

directory-package-mismatch

Directory structure should mirror package

equals-pattern-matching

Prefer pattern matching in function arguments

in-wildcard-key

Unnecessary wildcard key

no-defined-entrypoint

Missing entrypoint annotation

Type: Aggregate - only runs when more than one file is provided for linting

non-raw-regex-pattern

Use raw strings for regex patterns

Automatically fixable: Yes

prefer-set-or-object-rule

Prefer set or object rule over comprehension

use-contains

Use the contains keyword

use-if

Use the if keyword

use-object-keys

Prefer to use object.keys

use-some-for-output-vars

Use some to declare output variables

use-strings-count

Use strings.count where possible