Options

cache

boolean
Default: false

Only check changed files.

cacheLocation

string

Path to the cache file or directory.

cacheStrategy

string
Default: metadata
Accepted values: metadata, content

Strategy to use for detecting changed files in the cache.

eslintConfig

string

The name of the ESLint configuration file.

format

anyOf [string, string]
Default: stylish

ESLint Output formatter (https://eslint.org/docs/user-guide/formatters).

force

boolean
Default: false

Succeeds even if there was linting errors.

fix

boolean
Default: false

Fixes linting errors (may overwrite linted files).

hasTypeAwareRules

boolean

When set to true, the linter will invalidate its cache when any of its dependencies changes.

ignorePath

string

The path of the .eslintignore file.

lintFilePatterns

Required
Array<string>
Default: []

One or more files/dirs/globs to pass directly to ESLint's lintFiles() method.

maxWarnings

number
Default: -1

Number of warnings to trigger nonzero exit code - default: -1.

noEslintrc

boolean
Default: false

The equivalent of the --no-eslintrc flag on the ESLint CLI, it is false by default.

outputFile

string

File to write report to.

quiet

boolean
Default: false

Report errors only - default: false.

rulesdir

Array<string>
Default: []

The equivalent of the --rulesdir flag on the ESLint CLI.

resolvePluginsRelativeTo

string

The equivalent of the --resolve-plugins-relative-to flag on the ESLint CLI.

reportUnusedDisableDirectives

string
Default: off
Accepted values: off, warn, error

The equivalent of the --report-unused-disable-directives flag on the ESLint CLI.

silent

boolean
Default: false

Hide output text.