🐞 Bug report
Command (mark with an x)
app-routing.module.ts generated by Angular-cli v9 has consecutive blank lines( line 3 & 4 in below screenshot) , causing lint issue. This was not happening in Angular-cli v8.

with tslint.json configuration,
"rules": {
"no-consecutive-blank-lines":true
}
Is this a regression?
This was not happening in Angular-cli v8.
Description
As mentioned above.
🔬 Minimal Reproduction
- Install angular cli 9.1
npm install -g @angular/cli@9
- Create a new project
ng new my-app with route
- Update your tslint.json configuration with below rule
"rules": {
"no-consecutive-blank-lines": true
}
/Users/work/Angular9/my-app/src/app/app-routing.module.ts:4:1
ERROR: 4:1 no-consecutive-blank-lines Consecutive blank lines are forbidden
Lint errors found in the listed files.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
🌍 Your Environment
Angular CLI: 9.1.11
Node: 12.13.0
OS: darwin x64
Angular:
...
Ivy Workspace:
Package Version
@angular-devkit/architect 0.901.11
@angular-devkit/core 9.1.11
@angular-devkit/schematics 9.1.11
@schematics/angular 9.1.11
@schematics/update 0.901.11
rxjs 6.5.4
🐞 Bug report
Command (mark with an
x)app-routing.module.tsgenerated byAngular-cli v9has consecutive blank lines( line 3 & 4 in below screenshot) , causing lint issue. This was not happening inAngular-cli v8.with tslint.json configuration,
"rules": {
"no-consecutive-blank-lines":true
}
Is this a regression?
This was not happening in
Angular-cli v8.Description
As mentioned above.
🔬 Minimal Reproduction
npm install -g @angular/cli@9ng new my-appwith route"rules": {
"no-consecutive-blank-lines": true
}
Run.
ng lintLint fails with below error
/Users/work/Angular9/my-app/src/app/app-routing.module.ts:4:1
ERROR: 4:1 no-consecutive-blank-lines Consecutive blank lines are forbidden
Lint errors found in the listed files.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
🌍 Your Environment
Angular CLI: 9.1.11
Node: 12.13.0
OS: darwin x64
Angular:
...
Ivy Workspace:
Package Version
@angular-devkit/architect 0.901.11
@angular-devkit/core 9.1.11
@angular-devkit/schematics 9.1.11
@schematics/angular 9.1.11
@schematics/update 0.901.11
rxjs 6.5.4