Skip to content

Commit

Permalink
feat: upgrade to Angular 17
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
szuperaz committed Feb 21, 2025
1 parent b64baf1 commit 178d335
Show file tree
Hide file tree
Showing 149 changed files with 14,572 additions and 14,183 deletions.
43 changes: 34 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,28 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/all",
"plugin:prettier/recommended" // This should always be the last in the extends array
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
"@angular-eslint/prefer-on-push-component-change-detection": "off",
"unused-imports/no-unused-imports": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/unbound-method": "off"
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"@typescript-eslint/unbound-method": "off",
"@angular-eslint/prefer-standalone": "off",
"@angular-eslint/prefer-standalone-component": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true
}
]
}
},
{
Expand All @@ -33,23 +47,32 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@angular-eslint/all",
"plugin:prettier/recommended" // This should always be the last in the extends array
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
"@angular-eslint/prefer-on-push-component-change-detection": "off",
"unused-imports/no-unused-imports": "error",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
],
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off"
"@typescript-eslint/ban-types": "off",
"@angular-eslint/prefer-standalone-component": "off",
"@angular-eslint/prefer-standalone": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-unsafe-call": "off"
}
},
{
"files": ["*.html"],
"extends": [
"plugin:@angular-eslint/template/all",
"plugin:prettier/recommended" // This should always be the last in the extends array
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/template/i18n": "off",
Expand All @@ -59,8 +82,10 @@
"@angular-eslint/template/no-interpolation-in-attributes": "off",
"@angular-eslint/template/button-has-type": "off",
"@angular-eslint/template/no-inline-styles": "off",
"@angular-eslint/template/accessibility-interactive-supports-focus": "off",
"@angular-eslint/template/attributes-order": "off"
"@angular-eslint/template/attributes-order": "off",
"@angular-eslint/template/interactive-supports-focus": "off",
// stream-chat-css takes care of image sizing for us
"@angular-eslint/template/prefer-ngsrc": "off"
}
}
]
Expand Down
12 changes: 6 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "sample-app:build:production"
"buildTarget": "sample-app:build:production"
},
"development": {
"browserTarget": "sample-app:build:development"
"buildTarget": "sample-app:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "sample-app:build"
"buildTarget": "sample-app:build"
}
},
"test": {
Expand Down Expand Up @@ -282,18 +282,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "customizations-example:build:production"
"buildTarget": "customizations-example:build:production"
},
"development": {
"browserTarget": "customizations-example:build:development"
"buildTarget": "customizations-example:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "customizations-example:build"
"buildTarget": "customizations-example:build"
}
},
"test": {
Expand Down
Loading

0 comments on commit 178d335

Please sign in to comment.