Resource Not Found
We're sorry. The resource you are looking for cannot be found.
diff --git a/aio/src/app/app.component.spec.ts b/aio/src/app/app.component.spec.ts
index 18385db24a..b3f2718d67 100644
--- a/aio/src/app/app.component.spec.ts
+++ b/aio/src/app/app.component.spec.ts
@@ -589,7 +589,7 @@ describe('AppComponent', () => {
});
describe('restrainScrolling()', () => {
- const preventedScrolling = (currentTarget: object, deltaY: number) => {
+ const preventedScrolling = (currentTarget: { scrollTop: number, scrollHeight?: number, clientHeight?: number }, deltaY: number) => {
const evt = {
deltaY,
currentTarget,
@@ -1311,7 +1311,6 @@ class TestHttpClient {
{ title: 'v2', url: 'https://v2.angular.io' }
];
- // tslint:disable:quotemark
navJson = {
TopBar: [
{
diff --git a/aio/src/app/app.module.ts b/aio/src/app/app.module.ts
index 4a27d5b562..c81ccecec4 100644
--- a/aio/src/app/app.module.ts
+++ b/aio/src/app/app.module.ts
@@ -47,7 +47,7 @@ import { SwUpdatesModule } from 'app/sw-updates/sw-updates.module';
import { environment } from '../environments/environment';
// These are the hardcoded inline svg sources to be used by the `
` component.
-// tslint:disable: max-line-length
+/* eslint-disable max-len */
export const svgIconProviders = [
{
provide: SVG_ICONS,
@@ -145,7 +145,7 @@ export const svgIconProviders = [
multi: true,
},
];
-// tslint:enable: max-line-length
+/* eslint-enable max-len */
@NgModule({
imports: [
diff --git a/aio/src/app/custom-elements/api/api-list.component.spec.ts b/aio/src/app/custom-elements/api/api-list.component.spec.ts
index c12aa9f5c2..1f79d2e600 100644
--- a/aio/src/app/custom-elements/api/api-list.component.spec.ts
+++ b/aio/src/app/custom-elements/api/api-list.component.spec.ts
@@ -29,7 +29,8 @@ describe('ApiListComponent', () => {
});
/**
- * Expectation Utility: Assert that filteredSections has the expected result for this test
+ * Expectation Utility: Assert that filteredSections has the expected result for this test.
+ *
* @param itemTest - return true if the item passes the match test
*
* Subscibes to `filteredSections` and performs expectation within subscription callback.
@@ -220,7 +221,6 @@ class TestApiService {
sections = this.sectionsSubject.asObservable();
}
-// tslint:disable:quotemark
const apiSections: ApiSection[] = [
{
name: 'common',
diff --git a/aio/src/app/custom-elements/code/code-example.component.spec.ts b/aio/src/app/custom-elements/code/code-example.component.spec.ts
index 91d6dc673d..56d5598aeb 100644
--- a/aio/src/app/custom-elements/code/code-example.component.spec.ts
+++ b/aio/src/app/custom-elements/code/code-example.component.spec.ts
@@ -33,7 +33,7 @@ describe('CodeExampleComponent', () => {
});
it('should be able to capture the code snippet provided in content', () => {
- expect(codeExampleComponent.aioCode.code.trim()).toBe(`const foo = "bar";`);
+ expect(codeExampleComponent.aioCode.code.trim()).toBe('const foo = "bar";');
});
it('should clean-up the projected code snippet once captured', () => {
@@ -98,7 +98,7 @@ describe('CodeExampleComponent', () => {
`
})
class HostComponent {
- code = `const foo = "bar";`;
+ code = 'const foo = "bar";';
header = 'Great Example';
path = 'code-path';
hidecopy: boolean | string = false;
diff --git a/aio/src/app/custom-elements/code/code-example.component.ts b/aio/src/app/custom-elements/code/code-example.component.ts
index c7219edac1..6a01e9b13b 100644
--- a/aio/src/app/custom-elements/code/code-example.component.ts
+++ b/aio/src/app/custom-elements/code/code-example.component.ts
@@ -1,4 +1,4 @@
-/* tslint:disable component-selector */
+/* eslint-disable @angular-eslint/component-selector */
import { Component, HostBinding, ElementRef, ViewChild, Input, AfterViewInit } from '@angular/core';
import { CodeComponent } from './code.component';
@@ -32,7 +32,7 @@ import { CodeComponent } from './code.component';
`,
})
export class CodeExampleComponent implements AfterViewInit {
- classes: {};
+ classes: { 'headed-code': boolean, 'simple-code': boolean };
@Input() language: string;
@@ -67,11 +67,13 @@ export class CodeExampleComponent implements AfterViewInit {
get hidecopy(): boolean { return this._hidecopy; }
private _hidecopy: boolean;
+ /* eslint-disable-next-line @angular-eslint/no-input-rename */
@Input('hide-copy')
set hyphenatedHideCopy(hidecopy: boolean) {
this.hidecopy = hidecopy;
}
+ /* eslint-disable-next-line @angular-eslint/no-input-rename */
@Input('hideCopy')
set capitalizedHideCopy(hidecopy: boolean) {
this.hidecopy = hidecopy;
diff --git a/aio/src/app/custom-elements/code/code-tabs.component.ts b/aio/src/app/custom-elements/code/code-tabs.component.ts
index 3ed2cc6d11..1a0e5adb80 100644
--- a/aio/src/app/custom-elements/code/code-tabs.component.ts
+++ b/aio/src/app/custom-elements/code/code-tabs.component.ts
@@ -1,4 +1,4 @@
-/* tslint:disable component-selector */
+/* eslint-disable @angular-eslint/component-selector */
import { AfterViewInit, Component, ElementRef, Input, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
import { CodeComponent } from './code.component';
diff --git a/aio/src/app/custom-elements/code/code.component.spec.ts b/aio/src/app/custom-elements/code/code.component.spec.ts
index f223af7f44..d7914e7918 100644
--- a/aio/src/app/custom-elements/code/code.component.spec.ts
+++ b/aio/src/app/custom-elements/code/code.component.spec.ts
@@ -290,7 +290,6 @@ describe('CodeComponent', () => {
});
//// Test helpers ////
-// tslint:disable:member-ordering
@Component({
selector: 'aio-host-comp',
template: `
diff --git a/aio/src/app/custom-elements/code/code.component.ts b/aio/src/app/custom-elements/code/code.component.ts
index a3b40df5ae..44ad422767 100644
--- a/aio/src/app/custom-elements/code/code.component.ts
+++ b/aio/src/app/custom-elements/code/code.component.ts
@@ -120,7 +120,7 @@ export class CodeComponent implements OnChanges {
.pipe(tap(formattedCode => this.setCodeHtml(formattedCode)));
if (linenums !== false && this.language === 'none') {
- this.logger.warn(`Using 'linenums' with 'language: none' is currently not supported.`);
+ this.logger.warn("Using 'linenums' with 'language: none' is currently not supported.");
}
((this.language === 'none' ? skipPrettify : prettifyCode) as Observable)
diff --git a/aio/src/app/custom-elements/code/pretty-printer.service.ts b/aio/src/app/custom-elements/code/pretty-printer.service.ts
index 0f234dd787..f03616f8e2 100644
--- a/aio/src/app/custom-elements/code/pretty-printer.service.ts
+++ b/aio/src/app/custom-elements/code/pretty-printer.service.ts
@@ -36,7 +36,8 @@ export class PrettyPrinter {
}
/**
- * Format code snippet as HTML
+ * Format code snippet as HTML.
+ *
* @param code - the code snippet to format; should already be HTML encoded
* @param [language] - The language of the code to render (could be javascript, html, typescript, etc)
* @param [linenums] - Whether to display line numbers:
diff --git a/aio/src/app/custom-elements/contributor/contributor-list.component.spec.ts b/aio/src/app/custom-elements/contributor/contributor-list.component.spec.ts
index ccf426558a..19e6943d6c 100644
--- a/aio/src/app/custom-elements/contributor/contributor-list.component.spec.ts
+++ b/aio/src/app/custom-elements/contributor/contributor-list.component.spec.ts
@@ -81,7 +81,9 @@ describe('ContributorListComponent', () => {
return comp;
}
- interface SearchResult { [index: string]: string; }
+ interface SearchResult {
+ [index: string]: string;
+ }
class TestLocationService {
searchResult: SearchResult = {};
diff --git a/aio/src/app/custom-elements/contributor/contributor-list.component.ts b/aio/src/app/custom-elements/contributor/contributor-list.component.ts
index a55f631f18..980d3f9186 100644
--- a/aio/src/app/custom-elements/contributor/contributor-list.component.ts
+++ b/aio/src/app/custom-elements/contributor/contributor-list.component.ts
@@ -4,12 +4,12 @@ import { ContributorService } from './contributor.service';
import { LocationService } from 'app/shared/location.service';
@Component({
- selector: `aio-contributor-list`,
+ selector: 'aio-contributor-list',
template: `
diff --git a/aio/src/app/custom-elements/contributor/contributor.service.ts b/aio/src/app/custom-elements/contributor/contributor.service.ts
index 520e15223b..05be2dd9da 100644
--- a/aio/src/app/custom-elements/contributor/contributor.service.ts
+++ b/aio/src/app/custom-elements/contributor/contributor.service.ts
@@ -37,8 +37,7 @@ export class ContributorService {
}),
// Flatten group map into sorted group array of sorted contributors
- map(cmap => {
- return Object.keys(cmap).map(key => {
+ map(cmap => Object.keys(cmap).map(key => {
const order = knownGroups.indexOf(key);
return {
name: key,
@@ -46,8 +45,8 @@ export class ContributorService {
contributors: cmap[key].sort(compareContributors)
} as ContributorGroup;
})
- .sort(compareGroups);
- }),
+ .sort(compareGroups)
+ ),
publishLast(),
);
diff --git a/aio/src/app/custom-elements/live-example/live-example.component.spec.ts b/aio/src/app/custom-elements/live-example/live-example.component.spec.ts
index 1225c9e2e0..de3741096a 100644
--- a/aio/src/app/custom-elements/live-example/live-example.component.spec.ts
+++ b/aio/src/app/custom-elements/live-example/live-example.component.spec.ts
@@ -17,7 +17,7 @@ describe('LiveExampleComponent', () => {
@Component({
selector: 'aio-host-comp',
- template: ``
+ template: ''
})
class HostComponent { }
diff --git a/aio/src/app/custom-elements/live-example/live-example.component.ts b/aio/src/app/custom-elements/live-example/live-example.component.ts
index d5c6246a3f..d8390c560d 100644
--- a/aio/src/app/custom-elements/live-example/live-example.component.ts
+++ b/aio/src/app/custom-elements/live-example/live-example.component.ts
@@ -1,4 +1,4 @@
-/* tslint:disable component-selector */
+/* eslint-disable @angular-eslint/component-selector */
import { AfterContentInit, AfterViewInit, Component, ElementRef, Input, ViewChild } from '@angular/core';
import { Location } from '@angular/common';
import { CONTENT_URL_PREFIX } from 'app/documents/document.service';
@@ -136,7 +136,7 @@ export class LiveExampleComponent implements AfterContentInit {
*/
@Component({
selector: 'aio-embedded-stackblitz',
- template: ``,
+ template: '',
styles: [ 'iframe { min-height: 400px; }' ]
})
export class EmbeddedStackblitzComponent implements AfterViewInit {
diff --git a/aio/src/app/custom-elements/resource/resource-list.component.html b/aio/src/app/custom-elements/resource/resource-list.component.html
index d26938d462..0ac703950d 100644
--- a/aio/src/app/custom-elements/resource/resource-list.component.html
+++ b/aio/src/app/custom-elements/resource/resource-list.component.html
@@ -8,9 +8,7 @@