Skip to content

Commit 60b60ec

Browse files
committed
Add semi & comma-dangle rules on eslint.config.js
1 parent 317a29d commit 60b60ec

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

frontend-angular/eslint.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,19 @@ module.exports = tseslint.config(
3333
"@angular-eslint/component-class-suffix": [
3434
"error",
3535
{
36-
suffixes: ["","Component"]
36+
suffixes: ["", "Component"]
3737
}
3838
],
39+
"semi": ["error", "always"],
40+
"comma-dangle": ["error", "always-multiline"],
3941
"no-undefined": "error",
4042
"no-var": "error",
4143
"prefer-const": "error",
4244
"func-names": "error",
4345
"id-length": "error",
4446
"newline-before-return": "error",
4547
"space-before-blocks": "error",
46-
"no-alert": "error"
48+
"no-alert": "error"
4749
},
4850
},
4951
{

frontend-angular/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export const appConfig: ApplicationConfig = {
77
providers: [
88
provideBrowserGlobalErrorListeners(),
99
provideZoneChangeDetection({ eventCoalescing: true }),
10-
provideRouter(routes)
11-
]
10+
provideRouter(routes),
11+
],
1212
};

frontend-angular/src/app/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { RouterOutlet } from '@angular/router';
55
selector: 'app-root',
66
imports: [RouterOutlet],
77
templateUrl: './app.html',
8-
styleUrl: './app.css'
8+
styleUrl: './app.css',
99
})
1010
export class App {
1111
protected title = 'angular-starter';

0 commit comments

Comments
 (0)