From 5045cf6f476890868ca4955472367ae8c40dcf44 Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Sun, 17 Dec 2023 13:12:00 +0100 Subject: [PATCH] update to ng 16 --- .eslintrc.json | 31 +++++++---- package.json | 70 ++++++++++++------------- projects/ng-mat-components/package.json | 16 +++--- 3 files changed, 64 insertions(+), 53 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 59f4ec0..faaac3e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,13 @@ { "root": true, - "ignorePatterns": ["projects/**/*"], + "ignorePatterns": [ + "projects/**/*" + ], "overrides": [ { - "files": ["*.ts"], + "files": [ + "*.ts" + ], "extends": [ "eslint:recommended", "plugin:prettier/recommended", @@ -30,19 +34,26 @@ ] } }, - // NOTE: WE ARE NOT APPLYING PRETTIER IN THIS OVERRIDE, ONLY @ANGULAR-ESLINT/TEMPLATE { - "files": ["*.html"], - "extends": ["plugin:@angular-eslint/template/recommended"], + "files": [ + "*.html" + ], + "extends": [ + "plugin:@angular-eslint/template/recommended" + ], "rules": {} }, - // NOTE: WE ARE NOT APPLYING @ANGULAR-ESLINT/TEMPLATE IN THIS OVERRIDE, ONLY PRETTIER { - "files": ["*.html"], - "excludedFiles": ["*inline-template-*.component.html"], - "extends": ["plugin:prettier/recommended"], + "files": [ + "*.html" + ], + "excludedFiles": [ + "*inline-template-*.component.html" + ], + "extends": [ + "plugin:prettier/recommended" + ], "rules": { - // NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW) "prettier/prettier": [ "error", { diff --git a/package.json b/package.json index 8d67d0a..c9de12f 100644 --- a/package.json +++ b/package.json @@ -20,50 +20,50 @@ }, "private": false, "dependencies": { - "@angular/animations": "^15.2.10", - "@angular/cdk": "^15.2.9", - "@angular/common": "^15.2.10", - "@angular/compiler": "^15.2.10", - "@angular/core": "^15.2.10", - "@angular/forms": "^15.2.10", - "@angular/material": "^15.2.9", - "@angular/platform-browser": "^15.2.10", - "@angular/platform-browser-dynamic": "^15.2.10", - "@angular/router": "^15.2.10", + "@angular/animations": "^16.2.12", + "@angular/cdk": "^16.2.12", + "@angular/common": "^16.2.12", + "@angular/compiler": "^16.2.12", + "@angular/core": "^16.2.12", + "@angular/forms": "^16.2.12", + "@angular/material": "^16.2.12", + "@angular/platform-browser": "^16.2.12", + "@angular/platform-browser-dynamic": "^16.2.12", + "@angular/router": "^16.2.12", "@ng-icons/core": "24", "@ng-icons/material-icons": "24", "date-fns": "^2.29.3", "material-icons": "^1.13.1", - "postcss": "^8.4.20", - "rxjs": "^7.8.0", + "postcss": "^8.4.32", + "rxjs": "^7.8.1", "tslib": "^2.4.0", - "zone.js": "~0.11.7" + "zone.js": "~0.13.3" }, "devDependencies": { - "@angular-devkit/build-angular": "^15.2.10", - "@angular-eslint/builder": "^15.2.1", - "@angular-eslint/eslint-plugin": "^15.2.1", - "@angular-eslint/eslint-plugin-template": "^15.2.1", - "@angular-eslint/schematics": "^15.2.1", - "@angular-eslint/template-parser": "^15.2.1", - "@angular/cli": "^15.2.10", - "@angular/compiler-cli": "^15.2.10", - "@types/jasmine": "~3.10.0", - "@types/node": "^12.11.1", - "@typescript-eslint/eslint-plugin": "^5.43.0", - "@typescript-eslint/parser": "^5.43.0", - "autoprefixer": "^10.4.13", - "eslint": "^8.28.0", - "jasmine-core": "~4.0.0", + "@angular-devkit/build-angular": "^16.2.10", + "@angular-eslint/builder": "^16.3.1", + "@angular-eslint/eslint-plugin": "^16.3.1", + "@angular-eslint/eslint-plugin-template": "^16.3.1", + "@angular-eslint/schematics": "^16.3.1", + "@angular-eslint/template-parser": "^16.3.1", + "@angular/cli": "^16.2.10", + "@angular/compiler-cli": "^16.2.12", + "@types/jasmine": "~5.1.4", + "@types/node": "^18.19.3", + "@typescript-eslint/eslint-plugin": "^5.59.2", + "@typescript-eslint/parser": "^5.59.2", + "autoprefixer": "^10.4.16", + "eslint": "^8.39.0", + "jasmine-core": "~5.1.1", "karma": "~6.3.0", - "karma-chrome-launcher": "~3.1.0", - "karma-coverage": "~2.2.0", - "karma-jasmine": "~4.0.0", - "karma-jasmine-html-reporter": "~1.7.0", - "ng-packagr": "^15.2.2", + "karma-chrome-launcher": "~3.2.0", + "karma-coverage": "~2.2.1", + "karma-jasmine": "~5.1.0", + "karma-jasmine-html-reporter": "~2.1.0", + "ng-packagr": "^16.2.3", "prettier": "^2.8.3", "prettier-eslint": "^15.0.1", - "sass": "^1.57.1", - "typescript": "~4.8.4" + "sass": "^1.69.5", + "typescript": "~5.1.6" } } diff --git a/projects/ng-mat-components/package.json b/projects/ng-mat-components/package.json index f682db1..add0a20 100644 --- a/projects/ng-mat-components/package.json +++ b/projects/ng-mat-components/package.json @@ -3,13 +3,13 @@ "version": "0.0.0-PLACEHOLDER", "license": "Apache-2.0", "peerDependencies": { - "@angular/common": "^14.0.0", - "@angular/core": "^14.0.0", - "@angular/material": "^14.0.0", + "@angular/common": "^16.0.0", + "@angular/core": "^16.0.0", + "@angular/material": "^16.0.0", "date-fns": "^2.29.3" }, "dependencies": { - "tslib": "^2.3.0" + "tslib": "^2.6.2" }, "repository": { "type": "git", @@ -18,9 +18,9 @@ "homepage": "https://github.com/fullstack-devops/ng-mat-components", "description": "Central component repo for angular applications", "engines": { - "node": ">= 16.0.0", - "npm": ">= 8.0.0", - "yarn": ">= 1.13.0" + "node": ">= 18.0.0", + "npm": ">= 9.8.0", + "yarn": ">= 1.22.0" }, "bugs": { "url": "https://github.com/fullstack-devops/ng-mat-components/issues" @@ -40,4 +40,4 @@ "sass": "./styles/fonts/_roboto.scss" } } -} \ No newline at end of file +}