feat: update to Angular 13, move from tslint to eslint (#5957)

* feat: update to Angular 13

* feat: update to Angular 13, move from tslint to eslint
This commit is contained in:
Denis Strigo 2022-12-29 13:12:53 +03:00 committed by GitHub
parent fd95769478
commit ec68f5e84a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 4971 additions and 4118 deletions

57
.eslintrc.json Normal file
View file

@ -0,0 +1,57 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/no-input-rename": [
"warn",
{
"allowedNames": ["name"]
}
],
"@angular-eslint/component-selector": [
"error",
{
"prefix": "ngx",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "ngx",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}