Skip to content

Commit 178d335

Browse files
committed
feat: upgrade to Angular 17
BREAKING CHANGE: Anuglar 15 and 16 are no longer supported (these versions are no longer supported by Angular itself https://angular.dev/reference/releases#actively-supported-versions)
1 parent b64baf1 commit 178d335

File tree

149 files changed

+14572
-14183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+14572
-14183
lines changed

.eslintrc.json

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,28 @@
1313
"eslint:recommended",
1414
"plugin:@typescript-eslint/recommended-requiring-type-checking",
1515
"plugin:@angular-eslint/all",
16-
"plugin:prettier/recommended" // This should always be the last in the extends array
16+
"plugin:prettier/recommended"
1717
],
1818
"rules": {
1919
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
2020
"@angular-eslint/prefer-on-push-component-change-detection": "off",
2121
"unused-imports/no-unused-imports": "error",
22-
"no-console": ["error", { "allow": ["warn", "error"] }],
23-
"@typescript-eslint/unbound-method": "off"
22+
"no-console": [
23+
"error",
24+
{
25+
"allow": ["warn", "error"]
26+
}
27+
],
28+
"@typescript-eslint/unbound-method": "off",
29+
"@angular-eslint/prefer-standalone": "off",
30+
"@angular-eslint/prefer-standalone-component": "off",
31+
"@typescript-eslint/no-unused-expressions": [
32+
"error",
33+
{
34+
"allowShortCircuit": true,
35+
"allowTernary": true
36+
}
37+
]
2438
}
2539
},
2640
{
@@ -33,23 +47,32 @@
3347
"eslint:recommended",
3448
"plugin:@typescript-eslint/recommended-requiring-type-checking",
3549
"plugin:@angular-eslint/all",
36-
"plugin:prettier/recommended" // This should always be the last in the extends array
50+
"plugin:prettier/recommended"
3751
],
3852
"rules": {
3953
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
4054
"@angular-eslint/prefer-on-push-component-change-detection": "off",
4155
"unused-imports/no-unused-imports": "error",
42-
"no-console": ["error", { "allow": ["warn", "error"] }],
56+
"no-console": [
57+
"error",
58+
{
59+
"allow": ["warn", "error"]
60+
}
61+
],
4362
"@typescript-eslint/unbound-method": "off",
4463
"@typescript-eslint/no-explicit-any": "off",
45-
"@typescript-eslint/ban-types": "off"
64+
"@typescript-eslint/ban-types": "off",
65+
"@angular-eslint/prefer-standalone-component": "off",
66+
"@angular-eslint/prefer-standalone": "off",
67+
"@typescript-eslint/no-unsafe-function-type": "off",
68+
"@typescript-eslint/no-unsafe-call": "off"
4669
}
4770
},
4871
{
4972
"files": ["*.html"],
5073
"extends": [
5174
"plugin:@angular-eslint/template/all",
52-
"plugin:prettier/recommended" // This should always be the last in the extends array
75+
"plugin:prettier/recommended"
5376
],
5477
"rules": {
5578
"@angular-eslint/template/i18n": "off",
@@ -59,8 +82,10 @@
5982
"@angular-eslint/template/no-interpolation-in-attributes": "off",
6083
"@angular-eslint/template/button-has-type": "off",
6184
"@angular-eslint/template/no-inline-styles": "off",
62-
"@angular-eslint/template/accessibility-interactive-supports-focus": "off",
63-
"@angular-eslint/template/attributes-order": "off"
85+
"@angular-eslint/template/attributes-order": "off",
86+
"@angular-eslint/template/interactive-supports-focus": "off",
87+
// stream-chat-css takes care of image sizing for us
88+
"@angular-eslint/template/prefer-ngsrc": "off"
6489
}
6590
}
6691
]

angular.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@
134134
"builder": "@angular-devkit/build-angular:dev-server",
135135
"configurations": {
136136
"production": {
137-
"browserTarget": "sample-app:build:production"
137+
"buildTarget": "sample-app:build:production"
138138
},
139139
"development": {
140-
"browserTarget": "sample-app:build:development"
140+
"buildTarget": "sample-app:build:development"
141141
}
142142
},
143143
"defaultConfiguration": "development"
144144
},
145145
"extract-i18n": {
146146
"builder": "@angular-devkit/build-angular:extract-i18n",
147147
"options": {
148-
"browserTarget": "sample-app:build"
148+
"buildTarget": "sample-app:build"
149149
}
150150
},
151151
"test": {
@@ -282,18 +282,18 @@
282282
"builder": "@angular-devkit/build-angular:dev-server",
283283
"configurations": {
284284
"production": {
285-
"browserTarget": "customizations-example:build:production"
285+
"buildTarget": "customizations-example:build:production"
286286
},
287287
"development": {
288-
"browserTarget": "customizations-example:build:development"
288+
"buildTarget": "customizations-example:build:development"
289289
}
290290
},
291291
"defaultConfiguration": "development"
292292
},
293293
"extract-i18n": {
294294
"builder": "@angular-devkit/build-angular:extract-i18n",
295295
"options": {
296-
"browserTarget": "customizations-example:build"
296+
"buildTarget": "customizations-example:build"
297297
}
298298
},
299299
"test": {

0 commit comments

Comments
 (0)