Skip to content

Commit e7159ce

Browse files
committed
Update to angular 13
1 parent 4f8284c commit e7159ce

File tree

11 files changed

+20542
-22415
lines changed

11 files changed

+20542
-22415
lines changed

.eslintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["projects/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"parserOptions": {
8+
"project": ["tsconfig.json"],
9+
"createDefaultProgram": true
10+
},
11+
"extends": [
12+
"plugin:@angular-eslint/recommended",
13+
"plugin:@angular-eslint/template/process-inline-templates"
14+
],
15+
"rules": {
16+
"@angular-eslint/component-selector": [
17+
"error",
18+
{
19+
"prefix": "app",
20+
"style": "kebab-case",
21+
"type": "element"
22+
}
23+
],
24+
"@angular-eslint/directive-selector": [
25+
"error",
26+
{
27+
"prefix": "app",
28+
"style": "camelCase",
29+
"type": "attribute"
30+
}
31+
]
32+
}
33+
},
34+
{
35+
"files": ["*.html"],
36+
"extends": ["plugin:@angular-eslint/template/recommended"],
37+
"rules": {}
38+
}
39+
]
40+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/dist
55
/tmp
66
/out-tsc
7+
/.angular/cache
78
# Only exists if Bazel was run
89
/bazel-out
910

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
coverage
33
dist
4+
.angular

angular.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@
8383
}
8484
},
8585
"lint": {
86-
"builder": "@angular-devkit/build-angular:tslint",
86+
"builder": "@angular-eslint/builder:lint",
8787
"options": {
88-
"tsConfig": ["projects/train-platform/tsconfig.app.json"],
89-
"exclude": ["**/node_modules/**"]
88+
"lintFilePatterns": [
89+
"projects/train-platform/**/*.ts",
90+
"projects/train-platform/**/*.html"
91+
]
9092
}
9193
}
9294
}

0 commit comments

Comments
 (0)