Skip to content

Commit f51c463

Browse files
Upgrade to Angular 14 (#777)
1 parent 0fa81f0 commit f51c463

18 files changed

+19868
-22650
lines changed

Diff for: .eslintrc.json

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

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ speed-measure-plugin.json
2929
!.vscode/extensions.json
3030

3131
# misc
32+
/.angular/cache
3233
/.sass-cache
3334
/connect.lock
3435
/coverage

Diff for: angular.json

+12-32
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,6 @@
100100
"src/assets"
101101
]
102102
}
103-
},
104-
"lint": {
105-
"builder": "@angular-devkit/build-angular:tslint",
106-
"options": {
107-
"tsConfig": [
108-
"src/tsconfig.app.json",
109-
"src/tsconfig.spec.json"
110-
],
111-
"exclude": [
112-
"**/node_modules/**"
113-
]
114-
}
115103
}
116104
}
117105
},
@@ -131,15 +119,6 @@
131119
"devServerTarget": "angular2-jwt:serve:production"
132120
}
133121
}
134-
},
135-
"lint": {
136-
"builder": "@angular-devkit/build-angular:tslint",
137-
"options": {
138-
"tsConfig": "e2e/tsconfig.e2e.json",
139-
"exclude": [
140-
"**/node_modules/**"
141-
]
142-
}
143122
}
144123
}
145124
},
@@ -154,13 +133,13 @@
154133
"options": {
155134
"tsConfig": "projects/angular-jwt/tsconfig.lib.json",
156135
"project": "projects/angular-jwt/ng-package.json"
157-
}
158-
, "configurations": {
136+
},
137+
"configurations": {
159138
"production": {
160139
"tsConfig": "projects/angular-jwt/tsconfig.lib.prod.json"
161140
}
162141
}
163-
},
142+
},
164143
"test": {
165144
"builder": "@angular-devkit/build-angular:karma",
166145
"options": {
@@ -170,19 +149,20 @@
170149
}
171150
},
172151
"lint": {
173-
"builder": "@angular-devkit/build-angular:tslint",
152+
"builder": "@angular-eslint/builder:lint",
174153
"options": {
175-
"tsConfig": [
176-
"projects/angular-jwt/tsconfig.lib.json",
177-
"projects/angular-jwt/tsconfig.spec.json"
178-
],
179-
"exclude": [
180-
"**/node_modules/**"
154+
"lintFilePatterns": [
155+
"projects/angular-jwt/**/*.ts",
156+
"projects/angular-jwt/**/*.html"
181157
]
182158
}
183159
}
184160
}
185161
}
186162
},
187-
"defaultProject": "angular2-jwt"
163+
"cli": {
164+
"schematicCollections": [
165+
"@angular-eslint/schematics"
166+
]
167+
}
188168
}

0 commit comments

Comments
 (0)