Skip to content

Commit

Permalink
fix(@angular/cli): conform to style-guide import line spacing
Browse files Browse the repository at this point in the history
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

Close #4954
  • Loading branch information
filipesilva committed Feb 23, 2017
1 parent 8beba4c commit f7795bf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* tslint:disable:no-unused-variable */

import { TestBed, async, inject } from '@angular/core/testing';

import { <%= classifiedModuleName %>Guard } from './<%= dasherizedModuleName %>.guard';

describe('<%= classifiedModuleName %>Guard', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';<% if (routing) { %>

import { <%= classifiedModuleName %>RoutingModule } from './<%= dasherizedModuleName %>-routing.module';<% } %>

@NgModule({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { TestBed, async } from '@angular/core/testing';<% if (routing) { %>
import { RouterTestingModule } from '@angular/router/testing';<% } %>

import { AppComponent } from './app.component';

describe('AppComponent', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';<% if (routing) { %>
import { HttpModule } from '@angular/http';
<% if (routing) { %>
import { AppRoutingModule } from './app-routing.module';<% } %>

import { AppComponent } from './app.component';

@NgModule({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TestBed, inject } from '@angular/core/testing';

import { <%= classifiedModuleName %>Service } from './<%= dasherizedModuleName %>.service';

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

0 comments on commit f7795bf

Please sign in to comment.