Skip to content
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

fix(lint): fix new linting errors #4241

Merged
merged 1 commit into from
Jan 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/@ngtools/json-schema/src/schema-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export abstract class SchemaTreeNode<T> implements SchemaNode {
// Hierarchy objects
protected _parent: SchemaTreeNode<any>;

protected _defined: boolean = false;
protected _dirty: boolean = false;
protected _defined = false;
protected _dirty = false;

protected _schema: Schema;
protected _name: string;
Expand Down Expand Up @@ -247,7 +247,7 @@ export class OneOfSchemaTreeNode extends NonLeafSchemaTreeNode<any> {
export class ObjectSchemaTreeNode extends NonLeafSchemaTreeNode<{[key: string]: any}> {
// The map of all children metadata.
protected _children: { [key: string]: SchemaTreeNode<any> };
protected _frozen: boolean = false;
protected _frozen = false;

constructor(metaData: TreeNodeConstructorArgument<any>) {
super(metaData);
Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/webpack/src/compiler_host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions packages/@ngtools/webpack/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion packages/@ngtools/webpack/src/refactor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions packages/angular-cli/lib/webpack/compression-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/get-dependent-files.spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down