Skip to content

Commit 57b63b3

Browse files
alan-agius4clydin
authored andcommitted
refactor(@schematics/angular): deprecate lintFix option
As part of tslint deprecation we are also deprecated the lintFIx option. Users should use `ng lint --fix` directly instead
1 parent db5c777 commit 57b63b3

File tree

12 files changed

+24
-12
lines changed

12 files changed

+24
-12
lines changed

packages/schematics/angular/application/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
"type": "boolean",
105105
"default": false,
106106
"description": "When true, applies lint fixes after generating the application.",
107-
"x-user-analytics": 15
107+
"x-user-analytics": 15,
108+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
108109
},
109110
"strict": {
110111
"description": "Creates an application with stricter bundle budgets settings.",

packages/schematics/angular/class/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"type": "boolean",
4343
"default": false,
4444
"description": "When true, applies lint fixes after generating the class.",
45-
"x-user-analytics": 15
45+
"x-user-analytics": 15,
46+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
4647
}
4748
},
4849
"required": [

packages/schematics/angular/component/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@
141141
"type": "boolean",
142142
"default": false,
143143
"description": "When true, applies lint fixes after generating the component.",
144-
"x-user-analytics": 15
144+
"x-user-analytics": 15,
145+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
145146
}
146147
},
147148
"required": [

packages/schematics/angular/directive/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
"type": "boolean",
7979
"default": false,
8080
"description": "When true, applies lint fixes after generating the directive.",
81-
"x-user-analytics": 15
81+
"x-user-analytics": 15,
82+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
8283
}
8384
},
8485
"required": [

packages/schematics/angular/enum/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"type": "boolean",
3232
"default": false,
3333
"description": "When true, applies lint fixes after generating the enum.",
34-
"x-user-analytics": 15
34+
"x-user-analytics": 15,
35+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
3536
}
3637
},
3738
"required": [

packages/schematics/angular/guard/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"type": "boolean",
4343
"default": false,
4444
"description": "When true, applies lint fixes after generating the guard.",
45-
"x-user-analytics": 15
45+
"x-user-analytics": 15,
46+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
4647
},
4748
"implements": {
4849
"type": "array",

packages/schematics/angular/interceptor/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"type": "boolean",
4343
"default": false,
4444
"description": "When true, applies lint fixes after generating the interceptor.",
45-
"x-user-analytics": 15
45+
"x-user-analytics": 15,
46+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
4647
}
4748
},
4849
"required": ["name"]

packages/schematics/angular/interface/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"type": "boolean",
4545
"default": false,
4646
"description": "When true, applies lint fixes after generating the interface.",
47-
"x-user-analytics": 15
47+
"x-user-analytics": 15,
48+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
4849
}
4950
},
5051
"required": [

packages/schematics/angular/library/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"type": "boolean",
4848
"default": false,
4949
"description": "When true, applies lint fixes after generating the library.",
50-
"x-user-analytics": 15
50+
"x-user-analytics": 15,
51+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
5152
}
5253
},
5354
"required": []

packages/schematics/angular/module/schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"type": "boolean",
6464
"default": false,
6565
"description": "When true, applies lint fixes after generating the module.",
66-
"x-user-analytics": 15
66+
"x-user-analytics": 15,
67+
"x-deprecated": "Use \"ng lint --fix\" directly instead."
6768
}
6869
},
6970
"required": [

0 commit comments

Comments
 (0)