From f1d7d1d44bdf50db7735162509ec1b932a5dcbf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Sat, 13 Jan 2024 18:17:16 +0300 Subject: [PATCH] add google style linter --- .eslintrc.json | 1 + src/app/app.component.html | 2 +- src/app/app.component.ts | 7 +++++-- src/app/app.config.ts | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 43ead3b..7e98443 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -16,6 +16,7 @@ "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { + "new-cap": "off", "brace-style": ["error", "allman"], "object-curly-spacing": ["error", "always"], "indent": ["error", 2], diff --git a/src/app/app.component.html b/src/app/app.component.html index 1b7f2c3..3658bb3 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -225,7 +225,7 @@ -

Hello, {{ title }}

+

Hello, {{ main_title }}

Congratulations! Your app is running. πŸŽ‰

diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ff66929..2caa859 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -7,9 +7,12 @@ import { RouterOutlet } from '@angular/router'; standalone: true, imports: [CommonModule, RouterOutlet], templateUrl: './app.component.html', - styleUrl: './app.component.sass' + styleUrl: './app.component.sass', }) +/** + * @description Основной ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚, Π² ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΌ рСндСрится всС ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ + */ export class AppComponent { - title = 'imlegend-client'; + main_title = 'imlegend-client'; } diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 6c6ef60..e7d665f 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -4,5 +4,5 @@ import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(routes)] + providers: [provideRouter(routes)], };