@nrwl/linter:eslint
ESLint Lint Target.
Options can be configured in project.json
when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.
Options
cache
false
Only check changed files.
cacheLocation
Path to the cache file or directory.
cacheStrategy
metadata
metadata
, content
Strategy to use for detecting changed files in the cache.
eslintConfig
The name of the ESLint configuration file.
format
stylish
ESLint Output formatter (https://eslint.org/docs/user-guide/formatters).
force
false
Succeeds even if there was linting errors.
fix
false
Fixes linting errors (may overwrite linted files).
hasTypeAwareRules
When set to true
, the linter will invalidate its cache when any of its dependencies changes.
ignorePath
The path of the .eslintignore
file.
lintFilePatterns
[]
One or more files/dirs/globs to pass directly to ESLint's lintFiles()
method.
maxWarnings
-1
Number of warnings to trigger nonzero exit code - default: -1
.
noEslintrc
false
The equivalent of the --no-eslintrc
flag on the ESLint CLI, it is false
by default.
outputFile
File to write report to.
quiet
false
Report errors only - default: false
.
rulesdir
[]
The equivalent of the --rulesdir
flag on the ESLint CLI.
resolvePluginsRelativeTo
The equivalent of the --resolve-plugins-relative-to
flag on the ESLint CLI.
silent
false
Hide output text.