@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 playground
This is an example of what the properties looks like and their values. Go ahead and try, test your configuration this is a live-edit window, you can interact directly and get intellisense on property's values.
Options
cache
false
Only check changed files.
cacheLocation
Path to the cache file or directory.
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
.
silent
false
Hide output text.