Skip to content

Commit ab9019d

Browse files
authored
feat(linter): deprecate tslint (#18464)
1 parent ecbfe73 commit ab9019d

File tree

29 files changed

+60
-17
lines changed

29 files changed

+60
-17
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ Including the issue number that the PR relates to also helps with tracking.
343343
```plain
344344
feat(angular): add an option to generate lazy-loadable modules
345345
346-
`nx generate lib mylib --lazy` provisions the mylib project in tslint.json
346+
`nx generate lib mylib --lazy` provisions the mylib project in .eslintrc.json
347347

348348
Closes #157
349349
```

docs/generated/packages/angular/generators/convert-tslint-to-eslint.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"cli": "nx",
88
"title": "Convert an Angular project from TSLint to ESLint",
99
"description": "Convert an Angular project from TSLint to ESLint. NOTE: Does not work in `--dry-run mode`.",
10+
"x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.",
1011
"examples": [
1112
{
1213
"command": "nx g convert-tslint-to-eslint myapp",
@@ -54,6 +55,7 @@
5455
"presets": []
5556
},
5657
"description": "Converts a project from TSLint to ESLint.",
58+
"x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.",
5759
"implementation": "/packages/angular/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint#conversionGenerator.ts",
5860
"aliases": [],
5961
"hidden": false,

docs/generated/packages/linter/documents/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ nx lint my-lib
2828

2929
## Utils
3030

31-
- [convert-tslint-to-eslint](/packages/angular/generators/convert-tslint-to-eslint) - Converts a project linter from [TSLint](https://palantir.github.io/tslint/) to [ESLint](https://eslint.org/)
31+
- **Deprecated** [convert-tslint-to-eslint](/packages/angular/generators/convert-tslint-to-eslint) - Converts a project linter from [TSLint](https://palantir.github.io/tslint/) to [ESLint](https://eslint.org/)
3232

3333
## ESLint plugin
3434

docs/generated/packages/nest/generators/convert-tslint-to-eslint.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"$id": "nest-convert-tslint-to-eslint",
77
"cli": "nx",
88
"title": "Convert a NestJS project from TSLint to ESLint",
9+
"x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.",
910
"description": "Convert a NestJS project from TSLint to ESLint. \n_NOTE: Does not work in `--dry-run` mode_.",
1011
"examples": [
1112
{
@@ -44,6 +45,7 @@
4445
"presets": []
4546
},
4647
"description": "Convert a project from TSLint to ESLint.",
48+
"x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint.",
4749
"implementation": "/packages/nest/src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint#conversionGenerator.ts",
4850
"aliases": [],
4951
"hidden": false,

docs/shared/monorepo-nx-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Read more about workspace generators in the Workspace Generators guide.
191191
### Workspace Lint Checks
192192

193193
Custom lint checks is another great way to enforce best practices. We can create custom lint checks in the `tools/lint`
194-
directory and then register them in `tslint.json` or `.eslintrc.json`.
194+
directory and then register them in `.eslintrc.json`.
195195

196196
## Developer Workflow
197197

docs/shared/packages/linter/linter-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ nx lint my-lib
2828

2929
## Utils
3030

31-
- [convert-tslint-to-eslint](/packages/angular/generators/convert-tslint-to-eslint) - Converts a project linter from [TSLint](https://palantir.github.io/tslint/) to [ESLint](https://eslint.org/)
31+
- **Deprecated** [convert-tslint-to-eslint](/packages/angular/generators/convert-tslint-to-eslint) - Converts a project linter from [TSLint](https://palantir.github.io/tslint/) to [ESLint](https://eslint.org/)
3232

3333
## ESLint plugin
3434

docs/shared/recipes/generators/generator-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ The default value of this property. Example:
617617
"linter": {
618618
"description": "The tool to use for running lint checks.",
619619
"type": "string",
620-
"enum": ["eslint", "tslint"],
620+
"enum": ["eslint"],
621621
"default": "eslint"
622622
}
623623
}

nx-dev/models-package/src/lib/json-schema.models.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* tslint:disable */
21
/**
32
* This file was automatically generated by json-schema-to-typescript.
43
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,

packages/angular/generators.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"convert-tslint-to-eslint": {
4343
"factory": "./src/generators/convert-tslint-to-eslint/compat",
4444
"schema": "./src/generators/convert-tslint-to-eslint/schema.json",
45-
"description": "Converts a project from TSLint to ESLint."
45+
"description": "Converts a project from TSLint to ESLint.",
46+
"x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint."
4647
},
4748
"init": {
4849
"factory": "./src/generators/init/init.compat#initSchematic",
@@ -194,7 +195,8 @@
194195
"convert-tslint-to-eslint": {
195196
"factory": "./src/generators/convert-tslint-to-eslint/convert-tslint-to-eslint#conversionGenerator",
196197
"schema": "./src/generators/convert-tslint-to-eslint/schema.json",
197-
"description": "Converts a project from TSLint to ESLint."
198+
"description": "Converts a project from TSLint to ESLint.",
199+
"x-deprecated": "This generator is deprecated and will be removed in a future version of Nx. Migrate to ESLint."
198200
},
199201
"directive": {
200202
"factory": "./src/generators/directive/directive",

packages/angular/src/generators/convert-tslint-to-eslint/compat.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { convertNxGenerator } from '@nx/devkit';
22
import { warnForSchematicUsage } from '../utils/warn-for-schematic-usage';
33
import { conversionGenerator } from './convert-tslint-to-eslint';
44

5+
/**
6+
* @deprecated This generator will be removed in v17
7+
*/
58
export const conversionSchematic = warnForSchematicUsage(
69
convertNxGenerator(conversionGenerator)
710
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy