Como instalar eslint en Angular
ng add @ angular - eslint / schematics {
"root" : true ,
"ignorePatterns" : [
"projects/**/*"
Written by Pol Valle I am particularly drawn to developing applications that are not only functional but also visually appealing and easy to use. I accomplish this by implementing SOLID principles and clean architecture, and applying testing to ensure quality.
]
,
"overrides"
:
[
{
"files"
:
[
"*.ts"
]
,
"extends"
:
[
"eslint:recommended"
,
"plugin:@typescript-eslint/recommended"
,
"plugin:@angular-eslint/recommended"
,
"plugin:@angular-eslint/template/process-inline-templates"
]
,
"rules"
:
{
"@angular-eslint/directive-selector"
:
[
"error"
,
{
"type"
:
"attribute"
,
"prefix"
:
"app"
,
"style"
:
"camelCase"
}
]
,
"@angular-eslint/component-selector"
:
"off"
,
"@angular-eslint/prefer-inject"
:
"off"
,
"@angular-eslint/prefer-standalone"
:
"off"
,
"@angular-eslint/no-empty-lifecycle-method"
:
"off"
}
}
,
{
"files"
:
[
"*.html"
]
,
"extends"
:
[
"plugin:@angular-eslint/template/recommended"
,
"plugin:@angular-eslint/template/accessibility"
]
,
"rules"
:
{
"@angular-eslint/template/click-events-have-key-events"
:
"off"
,
"@angular-eslint/template/interactive-supports-focus"
:
"off"
}
}
]
}