nx/docs/node/api-angular/generators/convert-tslint-to-eslint.md
James Henry 00dec221e2
feat(linter): convert-tslint-to-eslint generators (#4943)
* feat(linter): convert-tslint-to-eslint generators

* fix(core): remove generators in collection for ng and nest

* fix(core): update tao to support mixed generators and schematics

* fix(core): update tao to support mixed generators and schematics

* fix(core): address some PR feedback

* fix(core): fix snapshots after syncing up with master

* feat(core): store user preference for removeTSLintIfNoMoreTSLintTargets

* fix(linter): unit tests

* feat(core): apply root tslint.json conversion to root .eslintrc.json
2021-03-19 13:41:13 -04:00

890 B

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 workspace.json.

You can specify the collection explicitly as follows:

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

Show what will be generated without writing to disk:

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

Examples

Convert the Angular project myapp from TSLint to ESLint:

nx g convert-tslint-to-eslint myapp

Options

project

Type: string

The name of the Angular project to convert.

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