Miscellaneous lint fixes (#20849)

This commit is contained in:
Andy
2017-10-22 15:22:50 -07:00
committed by GitHub
parent 4a0d3be1c0
commit 097d2acf71
129 changed files with 439 additions and 814 deletions
+3 -5
View File
@@ -178,7 +178,7 @@ mod.controller('name', class {
// $onChanges(x: number) { }
});
mod.controller({
MyCtrl: class{},
MyCtrl: class {},
MyCtrl2() {},
MyCtrl3: ['$fooService', ($fooService: any) => { }]
});
@@ -229,7 +229,7 @@ mod.provider(My.Namespace);
mod.service('name', ($scope: ng.IScope) => {});
mod.service('name', ['$scope', ($scope: ng.IScope) => {}]);
mod.service({
MyCtrl: class{},
MyCtrl: class {},
MyCtrl2: () => {}, // tslint:disable-line:object-literal-shorthand
MyCtrl3: ['$fooService', ($fooService: any) => {}]
});
@@ -491,9 +491,7 @@ namespace TestInjector {
// $injector.instantiate
{
class Foobar {
constructor($q) {}
}
class Foobar {}
const result: Foobar = $injector.instantiate(Foobar);
}