Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit d418d75

Browse files
chore(tslint): trailing-comma
1 parent 8d02149 commit d418d75

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

src/directives/stateDirectives.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { IAugmentedJQuery, ITimeoutService, IScope, IInterpolateService } from '
1313

1414
import {
1515
Obj, extend, forEach, tail, isString, isObject, isArray, parse, noop, unnestR, identity, uniqR, inArray, removeFrom,
16-
RawParams, PathNode, StateOrName, StateService, StateDeclaration, UIRouter
16+
RawParams, PathNode, StateOrName, StateService, StateDeclaration, UIRouter,
1717
} from '@uirouter/core';
1818
import { UIViewData } from './viewDirective';
1919

@@ -62,7 +62,7 @@ function getTypeInfo(el: IAugmentedJQuery): TypeInfo {
6262
return {
6363
attr: isForm ? 'action' : (isSvg ? 'xlink:href' : 'href'),
6464
isAnchor: el.prop('tagName').toUpperCase() === 'A',
65-
clickable: !isForm
65+
clickable: !isForm,
6666
};
6767
}
6868

@@ -93,7 +93,7 @@ function defaultOpts(el: IAugmentedJQuery, $state: StateService) {
9393
return {
9494
relative: stateContext(el) || $state.$current,
9595
inherit: true,
96-
source: 'sref'
96+
source: 'sref',
9797
};
9898
}
9999

@@ -299,7 +299,7 @@ uiSrefDirective = ['$uiRouter', '$timeout',
299299
if (!type.clickable) return;
300300
hookFn = clickHook(element, $state, $timeout, type, getDef);
301301
bindEvents(element, scope, hookFn, rawDef.uiStateOpts);
302-
}
302+
},
303303
};
304304
}];
305305

@@ -434,7 +434,7 @@ uiStateDirective = ['$uiRouter', '$timeout',
434434
if (!type.clickable) return;
435435
hookFn = clickHook(element, $state, $timeout, type, getDef);
436436
bindEvents(element, scope, hookFn, rawDef.uiStateOpts);
437-
}
437+
},
438438
};
439439
}];
440440

@@ -580,7 +580,7 @@ uiSrefActiveDirective = ['$state', '$stateParams', '$interpolate', '$uiRouter',
580580
const stateInfo = {
581581
state: state || { name: stateName },
582582
params: stateParams,
583-
activeClass: activeClass
583+
activeClass: activeClass,
584584
};
585585

586586
states.push(stateInfo);
@@ -612,7 +612,7 @@ uiSrefActiveDirective = ['$state', '$stateParams', '$interpolate', '$uiRouter',
612612
}
613613

614614
update();
615-
}]
615+
}],
616616
};
617617
}];
618618

src/directives/viewDirective.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function $ViewDirective($view: ViewService, $animate: any, $uiViewScroll: any, $
172172
} else {
173173
$animate.leave(element, cb);
174174
}
175-
}
175+
},
176176
};
177177
}
178178

@@ -182,7 +182,7 @@ function $ViewDirective($view: ViewService, $animate: any, $uiViewScroll: any, $
182182

183183
const rootData = {
184184
$cfg: { viewDecl: { $context: $view._pluginapi._rootViewContext() } },
185-
$uiView: { }
185+
$uiView: { },
186186
};
187187

188188
const directive = {
@@ -219,7 +219,7 @@ function $ViewDirective($view: ViewService, $animate: any, $uiViewScroll: any, $
219219
// See https://github.com/angular-ui/ui-router/issues/3355
220220
const fromParentTag = parse('$uiView.creationContext')(inherited);
221221
return fromParentTagConfig || fromParentTag;
222-
}
222+
},
223223
};
224224

225225
trace.traceUIViewEvent('Linking', activeUIView);
@@ -281,7 +281,7 @@ function $ViewDirective($view: ViewService, $animate: any, $uiViewScroll: any, $
281281
const $uiViewAnim: UIViewAnimData = {
282282
$animEnter: animEnter.promise,
283283
$animLeave: animLeave.promise,
284-
$$animLeave: animLeave
284+
$$animLeave: animLeave,
285285
};
286286

287287
/**
@@ -329,7 +329,7 @@ function $ViewDirective($view: ViewService, $animate: any, $uiViewScroll: any, $
329329
currentScope.$eval(onloadExp);
330330
}
331331
};
332-
}
332+
},
333333
};
334334

335335
return directive;
@@ -414,7 +414,7 @@ function $ViewDirectiveFill($compile: angular.ICompileService,
414414

415415
link(scope);
416416
};
417-
}
417+
},
418418
};
419419
}
420420

src/injectables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
import { StateProvider } from './stateProvider';
5555
import {
5656
StateService, TransitionService, Transition, UrlRouter, UrlMatcherFactory,
57-
StateParams, StateRegistry, UIRouterGlobals, UIRouter, Trace, UrlService
57+
StateParams, StateRegistry, UIRouterGlobals, UIRouter, Trace, UrlService,
5858
} from '@uirouter/core';
5959
import { UIViewScrollProvider } from './viewScroll';
6060
import { UrlRouterProvider } from './urlRouterProvider';

src/legacy/resolveService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const $resolve = {
6262
};
6363

6464
return parent ? parent.then(resolveData) : resolveData({});
65-
}
65+
},
6666
};
6767

6868
/** @hidden */

src/legacy/stateEvents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import { ng as angular } from '../angular';
2222
import { IScope, IAngularEvent, IServiceProviderFactory } from 'angular';
2323
import {
24-
Obj, TargetState, StateService, Transition, TransitionService, UrlRouter, HookResult, UIInjector
24+
Obj, TargetState, StateService, Transition, TransitionService, UrlRouter, HookResult, UIInjector,
2525
} from '@uirouter/core';
2626
import { StateProvider } from '../stateProvider';
2727

@@ -294,7 +294,7 @@ export let $stateNotFound: IAngularEvent;
294294
$transitions.onBefore({}, stateChangeStartHandler, { priority: 1000 });
295295

296296
return {
297-
provider: $StateEventsProvider.prototype.instance
297+
provider: $StateEventsProvider.prototype.instance,
298298
};
299299
}
300300
}

src/services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
/** for typedoc */
1313
import { ng as angular } from './angular';
1414
import {
15-
IRootScopeService, IQService, ILocationService, ILocationProvider, IHttpService, ITemplateCacheService
15+
IRootScopeService, IQService, ILocationService, ILocationProvider, IHttpService, ITemplateCacheService,
1616
} from 'angular';
1717
import {
1818
services, applyPairs, isString, trace, extend, UIRouter, StateService, UrlRouter, UrlMatcherFactory, ResolveContext,
19-
unnestR, TypedMap
19+
unnestR, TypedMap,
2020
} from '@uirouter/core';
2121
import { ng1ViewsBuilder, getNg1ViewConfigFactory } from './statebuilders/views';
2222
import { TemplateFactory } from './templateFactory';

src/stateProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @module ng1 */ /** for typedoc */
22
import {
3-
val, isObject, createProxyFunctions, BuilderFunction, StateRegistry, StateService, OnInvalidCallback
3+
val, isObject, createProxyFunctions, BuilderFunction, StateRegistry, StateService, OnInvalidCallback,
44
} from '@uirouter/core';
55
import { Ng1StateDeclaration } from './interface';
66

src/statebuilders/onEnterExitRetain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @module ng1 */ /** */
22
import {
3-
StateObject, TransitionStateHookFn, HookResult, Transition, services, ResolveContext, extend, BuilderFunction
3+
StateObject, TransitionStateHookFn, HookResult, Transition, services, ResolveContext, extend, BuilderFunction,
44
} from '@uirouter/core';
55
import { getLocals } from '../services';
66
import { Ng1StateDeclaration } from '../interface';

src/statebuilders/views.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ng as angular } from '../angular';
33
import {
44
StateObject, pick, forEach, tail, extend,
55
isArray, isInjectable, isDefined, isString, services, trace,
6-
ViewConfig, ViewService, ViewConfigFactory, PathNode, ResolveContext, Resolvable, IInjectable
6+
ViewConfig, ViewService, ViewConfigFactory, PathNode, ResolveContext, Resolvable, IInjectable,
77
} from '@uirouter/core';
88
import { Ng1ViewDeclaration } from '../interface';
99
import { TemplateFactory } from '../templateFactory';
@@ -98,7 +98,7 @@ export class Ng1ViewConfig implements ViewConfig {
9898

9999
const promises: any = {
100100
template: $q.when(this.factory.fromConfig(this.viewDecl, params, context)),
101-
controller: $q.when(this.getController(context))
101+
controller: $q.when(this.getController(context)),
102102
};
103103

104104
return $q.all(promises).then((results) => {

src/templateFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ng as angular } from './angular';
44
import { IAugmentedJQuery } from 'angular';
55
import {
66
isArray, isDefined, isFunction, isObject, services, Obj, IInjectable, tail, kebobString, unnestR, ResolveContext,
7-
Resolvable, RawParams
7+
Resolvable, RawParams,
88
} from '@uirouter/core';
99
import { Ng1ViewDeclaration, TemplateFactoryProvider } from './interface';
1010

0 commit comments

Comments
 (0)