diff --git a/packages/@ngtools/json-schema/src/schema-tree.ts b/packages/@ngtools/json-schema/src/schema-tree.ts index df732d41d72d..266a41cd915d 100644 --- a/packages/@ngtools/json-schema/src/schema-tree.ts +++ b/packages/@ngtools/json-schema/src/schema-tree.ts @@ -31,8 +31,8 @@ export abstract class SchemaTreeNode implements SchemaNode { // Hierarchy objects protected _parent: SchemaTreeNode; - protected _defined: boolean = false; - protected _dirty: boolean = false; + protected _defined = false; + protected _dirty = false; protected _schema: Schema; protected _name: string; @@ -247,7 +247,7 @@ export class OneOfSchemaTreeNode extends NonLeafSchemaTreeNode { export class ObjectSchemaTreeNode extends NonLeafSchemaTreeNode<{[key: string]: any}> { // The map of all children metadata. protected _children: { [key: string]: SchemaTreeNode }; - protected _frozen: boolean = false; + protected _frozen = false; constructor(metaData: TreeNodeConstructorArgument) { super(metaData); diff --git a/packages/@ngtools/webpack/src/compiler_host.ts b/packages/@ngtools/webpack/src/compiler_host.ts index 263959f8990a..608e79dfa2a7 100644 --- a/packages/@ngtools/webpack/src/compiler_host.ts +++ b/packages/@ngtools/webpack/src/compiler_host.ts @@ -100,7 +100,7 @@ export class WebpackCompilerHost implements ts.CompilerHost { private _basePath: string; private _setParentNodes: boolean; - private _cache: boolean = false; + private _cache = false; constructor(private _options: ts.CompilerOptions, basePath: string) { this._setParentNodes = true; diff --git a/packages/@ngtools/webpack/src/plugin.ts b/packages/@ngtools/webpack/src/plugin.ts index cde52330d928..fe7f14684f3e 100644 --- a/packages/@ngtools/webpack/src/plugin.ts +++ b/packages/@ngtools/webpack/src/plugin.ts @@ -47,8 +47,8 @@ export class AotPlugin implements Tapable { private _compiler: any = null; private _compilation: any = null; - private _typeCheck: boolean = true; - private _skipCodeGeneration: boolean = false; + private _typeCheck = true; + private _skipCodeGeneration = false; private _basePath: string; private _genDir: string; diff --git a/packages/@ngtools/webpack/src/refactor.ts b/packages/@ngtools/webpack/src/refactor.ts index 57a2e6937277..e001cfc974eb 100644 --- a/packages/@ngtools/webpack/src/refactor.ts +++ b/packages/@ngtools/webpack/src/refactor.ts @@ -30,7 +30,7 @@ export class TypeScriptFileRefactor { private _sourceFile: ts.SourceFile; private _sourceString: any; private _sourceText: string; - private _changed: boolean = false; + private _changed = false; get fileName() { return this._fileName; } get sourceFile() { return this._sourceFile; } diff --git a/packages/angular-cli/lib/webpack/compression-plugin.ts b/packages/angular-cli/lib/webpack/compression-plugin.ts index 32c627f17f58..6bae1ea0f697 100644 --- a/packages/angular-cli/lib/webpack/compression-plugin.ts +++ b/packages/angular-cli/lib/webpack/compression-plugin.ts @@ -26,8 +26,8 @@ export class CompressionPlugin { private algorithm: Function; private compressionOptions: any = {}; private test: RegExp[]; - private threshold: number = 0; - private minRatio: number = 0.8; + private threshold = 0; + private minRatio = 0.8; constructor(options: CompressionPluginOptions = {}) { if (options.hasOwnProperty('asset')) { diff --git a/tests/acceptance/get-dependent-files.spec.ts b/tests/acceptance/get-dependent-files.spec.ts index 0795f26c5844..a74c1ab363b6 100644 --- a/tests/acceptance/get-dependent-files.spec.ts +++ b/tests/acceptance/get-dependent-files.spec.ts @@ -1,6 +1,6 @@ 'use strict'; -// This needs to be first so fs module can be mocked correctly. +// This needs to be first so fs module can be mocked correctly. let mockFs = require('mock-fs'); import { expect, assert } from 'chai'; import * as path from 'path';