Runs linting tools on application code in a given project folder using the configured linter.
lint command is a built-in alias to the run command.
These two commands are equivalent:
nx lint <project> [options]
nx run <project>:lint [options]
nx package globally to invoke the command directly using
nx, or use
npm run nx or
Run lint checks for the
myapp project and fix linter errors:
nx lint myapp --fix
The options below are common to the
lint command used within an Nx workspace. The ESLint and Angular-specifc lint options are listed after these options.
Files to exclude from linting.
Files to include in linting.
Fixes linting errors (may overwrite linted files).
Succeeds even if there was linting errors.
ESLint Output formatter (https://eslint.org/docs/user-guide/formatters). (default: stylish)
Hide output text.
The name of the TypeScript configuration file.
Show help information
Show version number
Only check changed files.
Path to the cache file or directory.
The name of the configuration file.
The tool to use for running lint checks.
File to write report to.
The linting configuration to use.
The name of the TSLint configuration file.
Controls the type check for linting.