File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
packages/schematics/angular/migrations/update-6 Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -478,9 +478,15 @@ function extractProjectsConfig(
478
478
479
479
const tsConfigs : string [ ] = [ ] ;
480
480
const excludes : string [ ] = [ ] ;
481
+ let warnForLint = false ;
481
482
if ( config && config . lint && Array . isArray ( config . lint ) ) {
482
483
config . lint . forEach ( lint => {
483
- tsConfigs . push ( lint . project ) ;
484
+ if ( lint . project ) {
485
+ tsConfigs . push ( lint . project ) ;
486
+ } else {
487
+ warnForLint = true ;
488
+ }
489
+
484
490
if ( lint . exclude ) {
485
491
if ( typeof lint . exclude === 'string' ) {
486
492
excludes . push ( lint . exclude ) ;
@@ -491,6 +497,12 @@ function extractProjectsConfig(
491
497
} ) ;
492
498
}
493
499
500
+ if ( warnForLint ) {
501
+ logger . warn ( `
502
+ Lint without 'project' was not migrated which is not supported in Angular CLI 6.
503
+ ` ) ;
504
+ }
505
+
494
506
const removeDupes = ( items : string [ ] ) => items . reduce ( ( newItems , item ) => {
495
507
if ( newItems . indexOf ( item ) === - 1 ) {
496
508
newItems . push ( item ) ;
You can’t perform that action at this time.
0 commit comments