add google style linter

This commit is contained in:
Антон 2024-01-13 17:55:44 +03:00
parent dc11ff8a22
commit b0435fe1e1
3 changed files with 9 additions and 5 deletions

View File

@ -16,11 +16,14 @@
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"brace-style": ["error", "allman"],
"object-curly-spacing": ["error", "always"],
"indent": ["error", 2],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"prefix": "il",
"style": "camelCase"
}
],
@ -28,7 +31,7 @@
"error",
{
"type": "element",
"prefix": "app",
"prefix": "il",
"style": "kebab-case"
}
]

View File

@ -12,7 +12,7 @@
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"prefix": "il",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",

View File

@ -3,12 +3,13 @@ import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
@Component({
selector: 'app-root',
selector: 'il-root',
standalone: true,
imports: [CommonModule, RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.sass'
})
export class AppComponent {
export class AppComponent
{
title = 'imlegend-client';
}