Skip to content

Commit c3dd28a

Browse files
authored
fix(@angular/cli): conform to style-guide import line spacing (#4954)
Some blueprints didn't have an empty line between third party imports and application imports, as recommended in the Style Guide at https://angular.io/docs/ts/latest/guide/style-guide.html#!#03-06
1 parent e661f55 commit c3dd28a

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

packages/@angular/cli/blueprints/guard/files/__path__/__name__.guard.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/* tslint:disable:no-unused-variable */
2-
31
import { TestBed, async, inject } from '@angular/core/testing';
2+
43
import { <%= classifiedModuleName %>Guard } from './<%= dasherizedModuleName %>.guard';
54

65
describe('<%= classifiedModuleName %>Guard', () => {

packages/@angular/cli/blueprints/module/files/__path__/__name__.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';<% if (routing) { %>
3+
34
import { <%= classifiedModuleName %>RoutingModule } from './<%= dasherizedModuleName %>-routing.module';<% } %>
45

56
@NgModule({

packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { TestBed, async } from '@angular/core/testing';<% if (routing) { %>
22
import { RouterTestingModule } from '@angular/router/testing';<% } %>
3+
34
import { AppComponent } from './app.component';
45

56
describe('AppComponent', () => {

packages/@angular/cli/blueprints/ng/files/__path__/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { BrowserModule } from '@angular/platform-browser';
22
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
4-
import { HttpModule } from '@angular/http';<% if (routing) { %>
4+
import { HttpModule } from '@angular/http';
5+
<% if (routing) { %>
56
import { AppRoutingModule } from './app-routing.module';<% } %>
6-
77
import { AppComponent } from './app.component';
88

99
@NgModule({

packages/@angular/cli/blueprints/service/files/__path__/__name__.service.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { TestBed, inject } from '@angular/core/testing';
2+
23
import { <%= classifiedModuleName %>Service } from './<%= dasherizedModuleName %>.service';
34

45
describe('<%= classifiedModuleName %>Service', () => {

0 commit comments

Comments
 (0)