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