Skip to content

Commit 266e853

Browse files
committed
refactor: upgrade tslint and fix lint errors
1 parent b22d394 commit 266e853

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+242
-236
lines changed

lib/packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
'use strict';
99

10-
import {JsonObject} from '@angular-devkit/core';
10+
import { JsonObject } from '@angular-devkit/core';
1111
import * as glob from 'glob';
1212
import * as path from 'path';
1313

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"tar": "^3.1.5",
7070
"temp": "^0.8.3",
7171
"ts-node": "^2.0.0",
72-
"tslint": "^4.0.2",
72+
"tslint": "^5.5.0",
7373
"typescript": "~2.3.0",
7474
"v8-profiler": "^5.7.0"
7575
},

packages/_/schematics_cli/src/cli.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import {createLogger} from '@angular-devkit/core';
8+
import { createLogger } from '@angular-devkit/core';
99
import {
1010
DryRunEvent,
1111
DryRunSink,
@@ -19,9 +19,9 @@ import {
1919
FileSystemSchematicDesc,
2020
NodeModulesEngineHost,
2121
} from '@angular-devkit/schematics/tools';
22-
import {SchemaClassFactory} from '@ngtools/json-schema';
22+
import { SchemaClassFactory } from '@ngtools/json-schema';
2323
import * as minimist from 'minimist';
24-
import {Observable} from 'rxjs/Observable';
24+
import { Observable } from 'rxjs/Observable';
2525
import 'rxjs/add/operator/ignoreElements';
2626

2727

@@ -41,8 +41,8 @@ function usage(exitCode = 0): never {
4141
--force Force overwriting files that would otherwise be an error.
4242
--list-schematics List all schematics from the collection, by name.
4343
--help Show this message.
44-
45-
Any additional option is passed to the Schematics depending on
44+
45+
Any additional option is passed to the Schematics depending on
4646
`.replace(/^\s\s\s\s/g, '')); // To remove the indentation.
4747

4848
process.exit(exitCode);

packages/angular_devkit/build_optimizer/src/purify/purify.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
18
// This matches a comment left by the build-optimizer that contains pure import paths
29
const importCommentRegex = /\/\*\* PURE_IMPORTS_START (\S+) PURE_IMPORTS_END \*\//mg;
310

packages/angular_devkit/core/src/json/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import {BaseException} from '..';
8+
import { BaseException } from '..';
99
import {
1010
JsonArray,
1111
JsonAstArray,

packages/angular_devkit/core/src/json/parser_benchmark.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import {benchmark} from '@_/benchmark';
9-
import {parseJson, parseJsonAst} from './parser';
8+
import { benchmark } from '@_/benchmark';
9+
import { parseJson, parseJsonAst } from './parser';
1010

1111

1212
const testCase = {

packages/angular_devkit/core/src/json/parser_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import {JsonParseMode, parseJson, parseJsonAst} from './parser';
8+
import { JsonParseMode, parseJson, parseJsonAst } from './parser';
99

1010

1111
// Node 6 compatibility.

packages/angular_devkit/core/src/logger/cli-logger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import 'rxjs/add/operator/filter';
9-
import {bold, dim, red, white, yellow} from '../terminal';
10-
import {IndentLogger} from './indent';
11-
import {LogEntry, Logger} from './logger';
9+
import { bold, dim, red, white, yellow } from '../terminal';
10+
import { IndentLogger } from './indent';
11+
import { LogEntry, Logger } from './logger';
1212

1313

1414
/**

packages/angular_devkit/core/src/logger/indent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import 'rxjs/add/operator/map';
9-
import {Logger} from './logger';
9+
import { Logger } from './logger';
1010

1111

1212
/**

packages/angular_devkit/core/src/logger/indent_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
// tslint:disable:no-any
9-
import {IndentLogger} from './indent';
10-
import {LogEntry, Logger} from './logger';
9+
import { IndentLogger } from './indent';
10+
import { LogEntry, Logger } from './logger';
1111

1212

1313
describe('IndentSpec', () => {

0 commit comments

Comments
 (0)