Schema for internal use only

Please do not extend this schema as it is part of Nx internal usage.

@nx/angular:add-linting

Adds linting configuration to an Angular project.

Usage

nx generate add-linting ...

By default, Nx will search for add-linting in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nx/angular:add-linting ...
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

nx g add-linting ... --dry-run

Examples

Adds ESLint with Angular-specific rules for an existing project named cool-lib with the prefix cool:

nx g @nrwl/angular:add-linting --prefix=cool --projectName=cool-lib --projectRoot=libs/cool-lib

Options

prefix

Required
string
Format: html-selector

The prefix to apply to generated selectors.

projectName

Required
string

The name of the project.

projectRoot

Required
string

The path to the root of the selected project.

setParserOptionsProject

boolean
Default: false

Whether or not to configure the ESLint parserOptions.project option. We do not do this by default for lint performance reasons.

skipFormat

boolean
Default: false

Skip formatting files.

skipPackageJson

boolean
Default: false

Do not add dependencies to package.json.