Skip to content

Commit 5b45737

Browse files
chore(tslint): semicolon
1 parent 8a600b6 commit 5b45737

15 files changed

+22
-22
lines changed

src/common/strings.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function splitOnDelim(delim: string) {
139139
const re = new RegExp('(' + delim + ')', 'g');
140140
return (str: string) =>
141141
str.split(re).filter(identity);
142-
};
142+
}
143143

144144

145145
/**
@@ -158,5 +158,5 @@ export function joinNeighborsR(acc: any[], x: any) {
158158
if (isString(tail(acc)) && isString(x))
159159
return acc.slice(0, -1).concat(tail(acc) + x);
160160
return pushR(acc, x);
161-
};
161+
}
162162

src/hooks/onEnterExitRetain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function makeEnterExitRetainHook(hookName: string): TransitionStateHookFn {
1919
const _state: StateObject = state.$$state();
2020
const hookFn: TransitionStateHookFn = _state[hookName];
2121
return hookFn(transition, state);
22-
}
22+
};
2323
}
2424

2525
/**

src/hooks/redirectTo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @module hooks */ /** */
2-
import { isString, isFunction } from '../common/predicates'
2+
import { isString, isFunction } from '../common/predicates';
33
import { Transition } from '../transition/transition';
44
import { services } from '../common/coreservices';
55
import { TargetState } from '../state/targetState';

src/params/stateParams.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export class StateParams {
4040
}
4141
}
4242
return extend({}, inherited, newParams);
43-
};
43+
}
4444
}
4545

src/resolve/resolveContext.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class UIInjectorImpl implements UIInjector {
202202
}
203203

204204
if (!resolvable.resolved) {
205-
throw new Error('Resolvable async .get() not complete:' + stringify(resolvable.token))
205+
throw new Error('Resolvable async .get() not complete:' + stringify(resolvable.token));
206206
}
207207
return resolvable.data;
208208
}

src/state/stateBuilder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function resolvablesBuilder(state: StateObject): Resolvable[] {
191191
[isResolveLiteral, literal2Resolvable],
192192
[isLikeNg2Provider, literal2Resolvable],
193193
[isTupleFromObj, tuple2Resolvable],
194-
[val(true), (obj: any) => { throw new Error('Invalid resolve value: ' + stringify(obj)) }],
194+
[val(true), (obj: any) => { throw new Error('Invalid resolve value: ' + stringify(obj)); }],
195195
]);
196196

197197
// If resolveBlock is already an array, use it as-is.

src/transition/hookBuilder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@ function tupleSort(reverseDepthSort = false) {
132132
const factor = reverseDepthSort ? -1 : 1;
133133
const depthDelta = (l.node.state.path.length - r.node.state.path.length) * factor;
134134
return depthDelta !== 0 ? depthDelta : r.hook.priority - l.hook.priority;
135-
}
135+
};
136136
}

src/transition/interface.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ export interface PathType {
820820
*
821821
* Or, `true` to always match
822822
*/
823-
export type HookMatchCriterion = (string|IStateMatch|boolean)
823+
export type HookMatchCriterion = (string|IStateMatch|boolean);
824824

825825
export enum TransitionHookPhase { CREATE, BEFORE, RUN, SUCCESS, ERROR }
826826
export enum TransitionHookScope { TRANSITION, STATE }

src/url/urlMatcherFactory.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class UrlMatcherFactory implements Disposable, UrlMatcherConfig {
9191
if (isFunction(val)) result = result && (isDefined(object[name]) && isFunction(object[name]));
9292
});
9393
return result;
94-
};
94+
}
9595

9696
/**
9797
* Creates and registers a custom [[ParamType]] object
@@ -115,14 +115,14 @@ export class UrlMatcherFactory implements Disposable, UrlMatcherConfig {
115115
type(name: string, definition?: ParamTypeDefinition, definitionFn?: () => ParamTypeDefinition) {
116116
const type = this.paramTypes.type(name, definition, definitionFn);
117117
return !isDefined(definition) ? type : this;
118-
};
118+
}
119119

120120
/** @hidden */
121121
$get() {
122122
this.paramTypes.enqueue = false;
123123
this.paramTypes._flushTypeQueue();
124124
return this;
125-
};
125+
}
126126

127127
/** @internalapi */
128128
dispose() {

src/url/urlRouter.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class UrlRouter implements UrlRulesApi, UrlSyncApi, Disposable {
319319

320320
this._otherwiseFn = this.urlRuleFactory.create(val(true), handlerFn);
321321
this._sorted = false;
322-
};
322+
}
323323

324324
/** @inheritdoc */
325325
initial(handler: string | UrlRuleHandlerFn | TargetState | TargetStateDef) {
@@ -329,21 +329,21 @@ export class UrlRouter implements UrlRulesApi, UrlSyncApi, Disposable {
329329
router.globals.transitionHistory.size() === 0 && !!/^\/?$/.exec(urlParts.path);
330330

331331
this.rule(this.urlRuleFactory.create(matchFn, handlerFn));
332-
};
332+
}
333333

334334
/** @inheritdoc */
335335
when(matcher: (RegExp|UrlMatcher|string), handler: string|UrlRuleHandlerFn, options?: { priority: number }): UrlRule {
336336
const rule = this.urlRuleFactory.create(matcher, handler);
337337
if (isDefined(options && options.priority)) rule.priority = options.priority;
338338
this.rule(rule);
339339
return rule;
340-
};
340+
}
341341

342342
/** @inheritdoc */
343343
deferIntercept(defer?: boolean) {
344344
if (defer === undefined) defer = true;
345345
this.interceptDeferred = defer;
346-
};
346+
}
347347
}
348348

349349
function getHandlerFn(handler: string|UrlRuleHandlerFn|TargetState|TargetStateDef): UrlRuleHandlerFn {

src/url/urlRule.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class UrlRuleFactory {
193193
regexp.exec(url.path);
194194

195195
const details = { regexp, type: 'REGEXP' };
196-
return extend(new BaseUrlRule(matchParamsFromRegexp, _handler), details) as RegExpRule
196+
return extend(new BaseUrlRule(matchParamsFromRegexp, _handler), details) as RegExpRule;
197197
}
198198
}
199199

src/vanilla/browserLocationConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class BrowserLocationConfig implements LocationConfig {
3636
hashPrefix(): string;
3737
hashPrefix(newprefix?: string): string {
3838
return isDefined(newprefix) ? this._hashPrefix = newprefix : this._hashPrefix;
39-
};
39+
}
4040

4141
baseHref(href?: string): string {
4242
return isDefined(href) ? this._baseHref = href :

src/vanilla/pushStateLocationService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class PushStateLocationService extends BaseLocationServices {
1919
super(router, true);
2020
this._config = router.urlService.config;
2121
root.addEventListener('popstate', this._listener, false);
22-
};
22+
}
2323

2424
/**
2525
* Gets the base prefix without:

src/vanilla/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const keyValsToObjectR = (accum, [key, val]) => {
1414
} else if (isArray(accum[key])) {
1515
accum[key].push(val);
1616
} else {
17-
accum[key] = [accum[key], val]
17+
accum[key] = [accum[key], val];
1818
}
1919
return accum;
2020
};

src/view/view.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class ViewService {
193193

194194
private _rootViewContext(context?: ViewContext): ViewContext {
195195
return this._rootContext = context || this._rootContext;
196-
};
196+
}
197197

198198
private _viewConfigFactory(viewType: string, factory: ViewConfigFactory) {
199199
this._viewConfigFactories[viewType] = factory;
@@ -314,7 +314,7 @@ export class ViewService {
314314
trace.traceViewServiceUIViewEvent('<- Deregistering', uiView);
315315
removeFrom(uiViews)(uiView);
316316
};
317-
};
317+
}
318318

319319
/**
320320
* Returns the list of views currently available on the page, by fully-qualified name.

0 commit comments

Comments
 (0)