Deprecated

This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.

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

Convert a NestJS project from TSLint to ESLint. NOTE: Does not work in --dry-run mode.

Usage

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

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

You can specify the collection explicitly as follows:

1nx g @nx/nest:convert-tslint-to-eslint ... 2
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

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

Examples

Convert the NestJS project myapp from TSLint to ESLint:

1nx g convert-tslint-to-eslint myapp 2

Options

project

Required
string

The name of the NestJS project to convert.

ignoreExistingTslintConfig

boolean
Default: false

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

boolean
Default: true

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

skipFormat

boolean
Default: false

Skip formatting files.