LinuxCommandLibrary

ng-lint

runs linting on Angular project source code

TLDR

Lint project

$ ng lint
copy
Lint specific project
$ ng lint [project-name]
copy
Fix lint issues automatically
$ ng lint --fix
copy
Output in specific format
$ ng lint --format json
copy

SYNOPSIS

ng lint [project] [options]

DESCRIPTION

ng lint runs linting on Angular project source code. Uses ESLint by default in modern Angular versions. Checks code style and potential errors. Part of Angular CLI.

PARAMETERS

--fix

Auto-fix lint issues.
--format format
Output format (stylish, json, etc.).
--force
Succeed even with lint errors.
--silent
Suppress output.

SEE ALSO

ng(1), eslint(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community