Skip to content

Commit 0da3ef5

Browse files
Fix eslint missing packages (#7)
1 parent 6c5f84b commit 0da3ef5

12 files changed

Lines changed: 53 additions & 28 deletions

File tree

pnpm-lock.yaml

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/frontend/angular.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"projects": {
66
"angular-demo-project": {
77
"projectType": "application",
8-
"schematics": {},
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
913
"root": "",
1014
"sourceRoot": "src",
1115
"prefix": "app",
@@ -28,7 +32,7 @@
2832
}
2933
],
3034
"styles": [
31-
"src/styles.css"
35+
"src/styles.scss"
3236
]
3337
},
3438
"configurations": {
@@ -86,7 +90,7 @@
8690
}
8791
],
8892
"styles": [
89-
"src/styles.css"
93+
"src/styles.scss"
9094
]
9195
}
9296
},

src/main/frontend/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,18 @@
2626
},
2727
"devDependencies": {
2828
"@angular-eslint/builder": "20.2.0",
29+
"@angular-eslint/eslint-plugin": "20.2.0",
30+
"@angular-eslint/eslint-plugin-template": "20.2.0",
31+
"@angular-eslint/template-parser": "20.2.0",
2932
"@angular/build": "^20.2.1",
3033
"@angular/cli": "^20.2.1",
3134
"@angular/compiler-cli": "^20.2.1",
3235
"@cypress/schematic": "4.1.2",
3336
"@eslint/eslintrc": "^3.3.0",
3437
"@eslint/js": "^9.33.0",
3538
"@types/jasmine": "~5.1.0",
39+
"@typescript-eslint/eslint-plugin": "8.40.0",
40+
"@typescript-eslint/parser": "8.40.0",
3641
"angular-eslint": "20.2.0",
3742
"eslint": "^9.33.0",
3843
"eslint-config-prettier": "^10.1.1",

src/main/frontend/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { provideHttpClient, withFetch } from '@angular/common/http';
77
export const appConfig: ApplicationConfig = {
88
providers: [
99
provideBrowserGlobalErrorListeners(),
10-
provideZoneChangeDetection({eventCoalescing: true}),
10+
provideZoneChangeDetection({ eventCoalescing: true }),
1111
provideRouter(routes),
1212
provideHttpClient(withFetch()),
13-
]
13+
],
1414
};

src/main/frontend/src/app/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1 data-test="backend-response">{{ backendResponse || "Something went wrong" }}</h1>
1+
<h1 data-test="backend-response">{{ backendResponse || 'Something went wrong' }}</h1>

src/main/frontend/src/app/app.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,16 @@ import { TestResponse, TestService } from './services/test.service';
55
selector: 'app-root',
66
imports: [],
77
templateUrl: './app.html',
8-
styleUrl: './app.css'
8+
styleUrl: './app.scss',
99
})
1010
export class App implements OnInit {
11-
private readonly testService: TestService = inject(TestService);
12-
1311
protected backendResponse?: string;
1412

13+
private readonly testService: TestService = inject(TestService);
14+
1515
ngOnInit(): void {
1616
this.testService.getHelloWorld().subscribe((response: TestResponse) => {
1717
this.backendResponse = response.data;
18-
})
18+
});
1919
}
20-
2120
}

src/main/frontend/src/app/pages/.gitkeep

Whitespace-only changes.

src/main/frontend/src/app/services/test.service.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import { inject, Injectable } from '@angular/core';
22
import { HttpClient } from '@angular/common/http';
33
import { Observable } from 'rxjs';
44

5-
export interface TestResponse {
5+
export type TestResponse = {
66
data: string;
7-
}
7+
};
88

99
@Injectable({
10-
providedIn: 'root'
10+
providedIn: 'root',
1111
})
1212
export class TestService {
13-
1413
private readonly http: HttpClient = inject(HttpClient);
1514

1615
getHelloWorld(): Observable<TestResponse> {

src/main/frontend/src/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<title>AngularDemoProject</title>
6-
<base href="/">
7-
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<link rel="icon" type="image/x-icon" href="favicon.ico">
9-
</head>
10-
<body>
11-
<app-root></app-root>
12-
</body>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>AngularDemoProject</title>
6+
<base href="/" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<link rel="icon" type="image/x-icon" href="favicon.ico" />
9+
</head>
10+
<body>
11+
<app-root></app-root>
12+
</body>
1313
</html>

0 commit comments

Comments
 (0)