Skip to content

Commit 21663cc

Browse files
chore(tslint): align
1 parent 5ef7d28 commit 21663cc

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

src/common/trace.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,14 @@ export enum Category {
9090
RESOLVE, TRANSITION, HOOK, UIVIEW, VIEWCONFIG,
9191
}
9292

93-
/** @hidden */ const _tid = parse('$id');
94-
/** @hidden */ const _rid = parse('router.$id');
95-
/** @hidden */ const transLbl = (trans) => `Transition #${_tid(trans)}-${_rid(trans)}`;
93+
/** @hidden */
94+
const _tid = parse('$id');
95+
96+
/** @hidden */
97+
const _rid = parse('router.$id');
98+
99+
/** @hidden */
100+
const transLbl = (trans) => `Transition #${_tid(trans)}-${_rid(trans)}`;
96101

97102
/**
98103
* Prints UI-Router Transition trace information to the console.

src/params/param.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ import { ParamType } from './paramType';
1111
import { ParamTypes } from './paramTypes';
1212
import { UrlMatcherFactory } from '../url/urlMatcherFactory';
1313

14-
/** @hidden */ const hasOwn = Object.prototype.hasOwnProperty;
15-
/** @hidden */ const isShorthand = (cfg: ParamDeclaration) =>
14+
/** @hidden */
15+
const hasOwn = Object.prototype.hasOwnProperty;
16+
17+
/** @hidden */
18+
const isShorthand = (cfg: ParamDeclaration) =>
1619
['value', 'type', 'squash', 'array', 'dynamic'].filter(hasOwn.bind(cfg || {})).length === 0;
1720

1821
/** @internalapi */

src/transition/rejectFactory.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export enum RejectType {
1111
SUPERSEDED = 2, ABORTED = 3, INVALID = 4, IGNORED = 5, ERROR = 6,
1212
}
1313

14-
/** @hidden */ let id = 0;
14+
/** @hidden */
15+
let id = 0;
1516

1617
export class Rejection {
1718
$id = id++;

src/url/urlService.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ import { UrlConfigApi, UrlSyncApi, UrlRulesApi, UrlParts, MatchResult } from './
1212
const makeStub = (keys: string[]): any =>
1313
keys.reduce((acc, key) => (acc[key] = notImplemented(key), acc), { dispose: noop });
1414

15+
/* tslint:disable:align */
1516
/** @hidden */ const locationServicesFns = ['url', 'path', 'search', 'hash', 'onChange'];
1617
/** @hidden */ const locationConfigFns = ['port', 'protocol', 'host', 'baseHref', 'html5Mode', 'hashPrefix'];
1718
/** @hidden */ const umfFns = ['type', 'caseInsensitive', 'strictMode', 'defaultSquashPolicy'];
1819
/** @hidden */ const rulesFns = ['sort', 'when', 'initial', 'otherwise', 'rules', 'rule', 'removeRule'];
1920
/** @hidden */ const syncFns = ['deferIntercept', 'listen', 'sync', 'match'];
21+
/* tslint:enable:align */
2022

2123
/**
2224
* API for URL management

0 commit comments

Comments
 (0)