nx/docs/angular/api-nest/generators/convert-tslint-to-eslint.md
Craigory V Coppola a1ccc87a07
docs(misc): documentation headers should include collectionName for searchability (#6451)
Signed-off-by: AgentEnder <craigorycoppola@gmail.com>
2021-07-21 11:40:59 -04:00

1.2 KiB

@nrwl/nest:convert-tslint-to-eslint

Convert a project from TSLint to ESLint.

Usage

nx generate convert-tslint-to-eslint ...

By default, Nx will search for convert-tslint-to-eslint in the default collection provisioned in angular.json.

You can specify the collection explicitly as follows:

nx g @nrwl/nest:convert-tslint-to-eslint ...

Show what will be generated without writing to disk:

nx g convert-tslint-to-eslint ... --dry-run

Examples

Convert the NestJS project myapp from TSLint to ESLint:

nx g convert-tslint-to-eslint myapp

Options

project (required)

Type: string

The name of the NestJS project to convert.

ignoreExistingTslintConfig

Default: false

Type: boolean

If true we will not use existing TSLint config as a reference, we will just reset the project with the latest recommended ESLint config.

removeTSLintIfNoMoreTSLintTargets

Default: true

Type: boolean

If this conversion leaves no more TSLint usage in the workspace, it will remove TSLint and related dependencies and configuration.

skipFormat

Default: false

Type: boolean

Skip formatting files.