diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index 80eb963..0d144fd 100755 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -1,6 +1,6 @@ -import { HomeworkPage } from './app.po'; +import {HomeworkPage} from './app.po'; -describe('homework App', function() { +describe('homework App', function () { let page: HomeworkPage; beforeEach(() => { diff --git a/e2e/app.po.ts b/e2e/app.po.ts index 0c96ca8..c03b24e 100755 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -1,4 +1,4 @@ -import { browser, element, by } from 'protractor'; +import {browser, element, by} from 'protractor'; export class HomeworkPage { navigateTo() { diff --git a/karma.conf.js b/karma.conf.js index 1f2613a..6733dec 100755 --- a/karma.conf.js +++ b/karma.conf.js @@ -12,13 +12,13 @@ module.exports = function (config) { require('angular-cli/plugins/karma') ], files: [ - { pattern: './src/test.ts', watched: false } + {pattern: './src/test.ts', watched: false} ], preprocessors: { './src/test.ts': ['angular-cli'] }, mime: { - 'text/x-typescript': ['ts','tsx'] + 'text/x-typescript': ['ts', 'tsx'] }, remapIstanbulReporter: { reports: { @@ -31,8 +31,8 @@ module.exports = function (config) { environment: 'dev' }, reporters: config.angularCli && config.angularCli.codeCoverage - ? ['progress', 'karma-remap-istanbul'] - : ['progress'], + ? ['progress', 'karma-remap-istanbul'] + : ['progress'], port: 9876, colors: true, logLevel: config.LOG_INFO, diff --git a/protractor.conf.js b/protractor.conf.js index ffded70..9d9bd59 100755 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -18,15 +18,16 @@ exports.config = { jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, - print: function() {} + print: function () { + } }, useAllAngular2AppRoots: true, - beforeLaunch: function() { + beforeLaunch: function () { require('ts-node').register({ project: 'e2e' }); }, - onPrepare: function() { + onPrepare: function () { jasmine.getEnv().addReporter(new SpecReporter()); } }; diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 5be2cb3..ce696e7 100755 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,7 +1,7 @@ /* tslint:disable:no-unused-variable */ -import { TestBed, async } from '@angular/core/testing'; -import { AppComponent } from './app.component'; +import {TestBed, async} from '@angular/core/testing'; +import {AppComponent} from './app.component'; describe('AppComponent', () => { beforeEach(() => { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ff63e05..c2f8b42 100755 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import {Component} from '@angular/core'; @Component({ selector: 'app-root', diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 67ae491..daa00c6 100755 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -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'; +import {BrowserModule} from '@angular/platform-browser'; +import {NgModule} from '@angular/core'; +import {FormsModule} from '@angular/forms'; +import {HttpModule} from '@angular/http'; -import { AppComponent } from './app.component'; +import {AppComponent} from './app.component'; @NgModule({ declarations: [ @@ -17,4 +17,5 @@ import { AppComponent } from './app.component'; providers: [], bootstrap: [AppComponent] }) -export class AppModule { } +export class AppModule { +} diff --git a/src/index.html b/src/index.html index f5c9c40..65b2374 100755 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,6 @@ - Loading... +Loading... diff --git a/src/main.ts b/src/main.ts index 46c1c73..dba8b46 100755 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,7 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { enableProdMode } from '@angular/core'; -import { environment } from './environments/environment'; -import { AppModule } from './app/app.module'; +import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {enableProdMode} from '@angular/core'; +import {environment} from './environments/environment'; +import {AppModule} from './app/app.module'; if (environment.production) { enableProdMode(); diff --git a/src/test.ts b/src/test.ts index 9bf7226..e158da7 100755 --- a/src/test.ts +++ b/src/test.ts @@ -6,7 +6,7 @@ import 'zone.js/dist/sync-test'; import 'zone.js/dist/jasmine-patch'; import 'zone.js/dist/async-test'; import 'zone.js/dist/fake-async-test'; -import { getTestBed } from '@angular/core/testing'; +import {getTestBed} from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting @@ -17,7 +17,8 @@ declare var __karma__: any; declare var require: any; // Prevent Karma from running prematurely. -__karma__.loaded = function () {}; +__karma__.loaded = function () { +}; // First, initialize the Angular testing environment. getTestBed().initTestEnvironment( diff --git a/src/tsconfig.json b/src/tsconfig.json index 1cf713a..de1c9e1 100755 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -4,7 +4,10 @@ "declaration": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "mapRoot": "./", "module": "es6", "moduleResolution": "node", diff --git a/tslint.json b/tslint.json index 86bc184..3bbe964 100755 --- a/tslint.json +++ b/tslint.json @@ -12,7 +12,10 @@ "curly": true, "eofline": true, "forin": true, - "import-blacklist": [true, "rxjs"], + "import-blacklist": [ + true, + "rxjs" + ], "import-spacing": true, "indent": [ true, @@ -97,9 +100,18 @@ "check-separator", "check-type" ], - - "directive-selector": [true, "attribute", "app", "camelCase"], - "component-selector": [true, "element", "app", "kebab-case"], + "directive-selector": [ + true, + "attribute", + "app", + "camelCase" + ], + "component-selector": [ + true, + "element", + "app", + "kebab-case" + ], "use-input-property-decorator": true, "use-output-property-decorator": true, "use-host-property-decorator": true,