Angular 12 References/ CLI
🍀 Angular References

ng lint

ng lint [project] [--[argument]=[value]]
ng l

Runs linting tools on Angular app code in a given project folder.

Alias for the command:

ng run [project]:lint

[project] — the name of the project to build.

When a project name is not supplied, it will execute for all projects.

By default for applications CLI uses builder tslint.

The default linting tool is TSLint, and the default configuration is specified in the project's tslint.json file.

A builder runs with default configuration options specified in the workspace configuration file (angular.json) or with a named alternative configuration.

The configuration options generally correspond to the command options. You can override individual configuration defaults by specifying the corresponding options on the command line. The command can accept option names given in either dash-case or camelCase. Note that in the configuration file, you must specify names in camelCase.

Some additional options can only be set through the configuration file, either by direct editing or with the ng config command.

Links & Tutorials



Specify the configuration to use.

Type string
Aliases c

Go to tslint builder options.