Skip to content

Commit 589d54d

Browse files
committed
fix(@schematics/angular): remove lint fix default value
Since will remove lintFix usage warnings when the option is set by a default of another schematic. Example when executing ``` ng generate module customers --route customers --module app.module ``` The lintFix default of the module schematic will be passed down to the component schematic which would cause a warning to be shown. Closes #19169 (cherry picked from commit affaabe)
1 parent 9264b80 commit 589d54d

File tree

10 files changed

+0
-10
lines changed

10 files changed

+0
-10
lines changed

packages/schematics/angular/application/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
},
101101
"lintFix": {
102102
"type": "boolean",
103-
"default": false,
104103
"description": "When true, applies lint fixes after generating the application.",
105104
"x-user-analytics": 15,
106105
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/component/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
},
140140
"lintFix": {
141141
"type": "boolean",
142-
"default": false,
143142
"description": "When true, applies lint fixes after generating the component.",
144143
"x-user-analytics": 15,
145144
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/directive/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
},
7777
"lintFix": {
7878
"type": "boolean",
79-
"default": false,
8079
"description": "When true, applies lint fixes after generating the directive.",
8180
"x-user-analytics": 15,
8281
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/enum/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
},
3030
"lintFix": {
3131
"type": "boolean",
32-
"default": false,
3332
"description": "When true, applies lint fixes after generating the enum.",
3433
"x-user-analytics": 15,
3534
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/guard/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
},
4141
"lintFix": {
4242
"type": "boolean",
43-
"default": false,
4443
"description": "When true, applies lint fixes after generating the guard.",
4544
"x-user-analytics": 15,
4645
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/interceptor/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
},
4141
"lintFix": {
4242
"type": "boolean",
43-
"default": false,
4443
"description": "When true, applies lint fixes after generating the interceptor.",
4544
"x-user-analytics": 15,
4645
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/interface/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
},
4343
"lintFix": {
4444
"type": "boolean",
45-
"default": false,
4645
"description": "When true, applies lint fixes after generating the interface.",
4746
"x-user-analytics": 15,
4847
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/library/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
},
4646
"lintFix": {
4747
"type": "boolean",
48-
"default": false,
4948
"description": "When true, applies lint fixes after generating the library.",
5049
"x-user-analytics": 15,
5150
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/module/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
},
6262
"lintFix": {
6363
"type": "boolean",
64-
"default": false,
6564
"description": "When true, applies lint fixes after generating the module.",
6665
"x-user-analytics": 15,
6766
"x-deprecated": "Use \"ng lint --fix\" directly instead."

packages/schematics/angular/service/schema.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
},
4141
"lintFix": {
4242
"type": "boolean",
43-
"default": false,
4443
"description": "When true, applies lint fixes after generating the service.",
4544
"x-user-analytics": 15,
4645
"x-deprecated": "Use \"ng lint --fix\" directly instead."

0 commit comments

Comments
 (0)