-
Notifications
You must be signed in to change notification settings - Fork 12k
Lint Issue: Angular CLI generate app-routing.module.ts
with consecutive blank lines
#18220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
1 of 15 tasks
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
good first issue
severity2: inconvenient
type: bug/fix
Milestone
Comments
Please assign to me |
sacgrover
added a commit
to sacgrover/angular-cli
that referenced
this issue
Jul 11, 2020
sacgrover
added a commit
to sacgrover/angular-cli
that referenced
this issue
Jul 11, 2020
sacgrover
added a commit
to sacgrover/angular-cli
that referenced
this issue
Jul 11, 2020
sacgrover
added a commit
to sacgrover/angular-cli
that referenced
this issue
Jul 13, 2020
sacgrover
added a commit
to sacgrover/angular-cli
that referenced
this issue
Jul 14, 2020
clydin
pushed a commit
that referenced
this issue
Jul 15, 2020
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
good first issue
severity2: inconvenient
type: bug/fix
🐞 Bug report
Command (mark with an
x
)app-routing.module.ts
generated byAngular-cli v9
has 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@9
ng new my-app
with route"rules": {
"no-consecutive-blank-lines": true
}
Run.
ng lint
Lint 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
The text was updated successfully, but these errors were encountered: