Skip to content

Commit 8d46d57

Browse files
Fix lint
1 parent 9793935 commit 8d46d57

File tree

11 files changed

+21
-49
lines changed

11 files changed

+21
-49
lines changed

.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"createDefaultProgram": true
1010
},
1111
"extends": [
12-
"plugin:@angular-eslint/ng-cli-compat",
13-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
12+
"plugin:@angular-eslint/recommended",
1413
"plugin:@angular-eslint/template/process-inline-templates"
1514
],
1615
"rules": {

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,6 @@
197197
}
198198
},
199199
"cli": {
200-
"schematicCollections": ["@angular-eslint/schematics"]
200+
"schematicCollections": ["angular-eslint"]
201201
}
202202
}

projects/auth0-angular/src/lib/interfaces.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { RedirectLoginOptions as SPARedirectLoginOptions, LogoutOptions as SPALogoutOptions } from '@auth0/auth0-spa-js';
1+
import {
2+
RedirectLoginOptions as SPARedirectLoginOptions,
3+
LogoutOptions as SPALogoutOptions,
4+
} from '@auth0/auth0-spa-js';
25

3-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
4-
export interface RedirectLoginOptions<TAppState> extends Omit<SPARedirectLoginOptions<TAppState>, 'onRedirect'> {}
6+
export interface RedirectLoginOptions<TAppState>
7+
extends Omit<SPARedirectLoginOptions<TAppState>, 'onRedirect'> {}
58

6-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
79
export interface LogoutOptions extends Omit<SPALogoutOptions, 'onRedirect'> {}
8-

projects/playground/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "../../.eslintrc.json",
3-
"ignorePatterns": ["!**/*"],
3+
"ignorePatterns": ["!**/*", "src/environments/*.ts", "src/test-setup.ts"],
44
"overrides": [
55
{
66
"files": ["*.ts"],

projects/playground/src/app/app.component.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/dot-notation */
21
import { TestBed, ComponentFixture } from '@angular/core/testing';
32
import { RouterTestingModule } from '@angular/router/testing';
43
import { AppComponent } from './app.component';

projects/playground/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/dot-notation */
21
import { Component, Inject, OnInit } from '@angular/core';
32
import { UntypedFormGroup, UntypedFormControl } from '@angular/forms';
43
import { AuthService } from '../../../auth0-angular/src/lib/auth.service';
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-child-route',
55
template: `
6-
<p data-cy="child-route">
7-
child-route works!
8-
</p>
6+
<p data-cy="child-route">child-route works!</p>
97
108
<router-outlet></router-outlet>
119
`,
1210
styles: [],
1311
})
14-
export class ChildRouteComponent implements OnInit {
15-
constructor() {}
16-
17-
ngOnInit(): void {}
18-
}
12+
export class ChildRouteComponent {}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-lazy-module',
55
template: '<p data-cy="lazy-module">lazy-module works!</p>',
66
styles: [],
77
})
8-
export class LazyModuleComponent implements OnInit {
9-
constructor() {}
10-
11-
ngOnInit(): void {}
12-
}
8+
export class LazyModuleComponent {}
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-nested-child-route',
5-
template: `
6-
<p data-cy="nested-child-route">
7-
Nested child-route works!
8-
</p>
9-
`,
5+
template: ` <p data-cy="nested-child-route">Nested child-route works!</p> `,
106
styles: [],
117
})
12-
export class NestedChildRouteComponent implements OnInit {
13-
constructor() {}
14-
15-
ngOnInit(): void {}
16-
}
8+
export class NestedChildRouteComponent {}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-protected',
55
template: '<p data-cy="protected">This route is protected!</p>',
66
styles: [],
77
})
8-
export class ProtectedComponent implements OnInit {
9-
constructor() {}
10-
11-
ngOnInit(): void {}
12-
}
8+
export class ProtectedComponent {}

0 commit comments

Comments
 (0)