style(docs-infra): Active tslint rule `semicolon` (#28282)
PR Close #28282
This commit is contained in:
parent
7db035842d
commit
5b08a880f7
|
@ -52,7 +52,7 @@ describe('AppComponent', () => {
|
|||
await newDocPromise; // Wait for the new document to be fetched.
|
||||
fixture.detectChanges(); // Propagate document change to the view (i.e to `DocViewer`).
|
||||
await docRenderedPromise; // Wait for the `docRendered` event.
|
||||
};
|
||||
}
|
||||
|
||||
function initializeTest(waitForDoc = true) {
|
||||
fixture = TestBed.createComponent(AppComponent);
|
||||
|
@ -73,7 +73,7 @@ describe('AppComponent', () => {
|
|||
tocService = de.injector.get<TocService>(TocService);
|
||||
|
||||
return waitForDoc && awaitDocRendered();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
describe('with proper DocViewer', () => {
|
||||
|
|
|
@ -125,7 +125,7 @@ export class ApiListComponent implements OnInit {
|
|||
return status === 'all' ||
|
||||
status === item.stability ||
|
||||
(status === 'security-risk' && item.securityRisk);
|
||||
};
|
||||
}
|
||||
|
||||
function matchesType() {
|
||||
return type === 'all' || type === item.docType;
|
||||
|
|
|
@ -54,7 +54,7 @@ export class ApiService implements OnDestroy {
|
|||
section.items.every(item => item.stability === 'deprecated');
|
||||
});
|
||||
}));
|
||||
};
|
||||
}
|
||||
|
||||
constructor(private http: HttpClient, private logger: Logger) { }
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ describe('ContributorListComponent', () => {
|
|||
return comp;
|
||||
}
|
||||
|
||||
interface SearchResult { [index: string]: string; };
|
||||
interface SearchResult { [index: string]: string; }
|
||||
|
||||
class TestLocationService {
|
||||
searchResult: SearchResult = {};
|
||||
|
|
|
@ -245,7 +245,7 @@ class FakeComponentFactory extends ComponentFactory<any> {
|
|||
rootSelectorOrNode?: string | any,
|
||||
ngModule?: NgModuleRef<any>): ComponentRef<any> {
|
||||
return jasmine.createSpy('ComponentRef') as any;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class FakeComponentFactoryResolver extends ComponentFactoryResolver {
|
||||
|
|
|
@ -37,6 +37,6 @@ describe('Getting Started NgFor Component', () => {
|
|||
|
||||
component.parseError$.subscribe(error => {
|
||||
expect(error).toBeTruthy();
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -46,6 +46,6 @@ describe('Getting Started NgIf Component', () => {
|
|||
|
||||
component.parseError$.subscribe(error => {
|
||||
expect(error).toBeTruthy();
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -26,7 +26,7 @@ export class ResourceService {
|
|||
|
||||
(categories as ConnectableObservable<Category[]>).connect();
|
||||
return categories;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Extract sorted Category[] from resource JSON data
|
||||
|
|
|
@ -14,4 +14,4 @@ export class Deployment {
|
|||
mode: string = this.location.search()['mode'] || environment.mode;
|
||||
|
||||
constructor(private location: LocationService) {}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -75,6 +75,7 @@
|
|||
],
|
||||
"radix": true,
|
||||
"semicolon": [
|
||||
true,
|
||||
"always"
|
||||
],
|
||||
"triple-equals": [
|
||||
|
|
Loading…
Reference in New Issue