Skip to content

Commit

Permalink
Upgrade typescript angular (#223)
Browse files Browse the repository at this point in the history
* add node 22 build

* angular 13 upgrade & eslint

* angular 14 upgrade

* feat: angular 15 upgrade

* update sherlock

* upgrade @types/node
  • Loading branch information
emielb authored Jun 3, 2024
1 parent 7a63c9d commit 29af91b
Show file tree
Hide file tree
Showing 16 changed files with 21,474 additions and 26,373 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "app",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "app",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Start Application
run: |
npm install -g wait-on
npm install -g wait-on
npm run start:app & wait-on http://localhost:4200
- name: E2E
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
!.vscode/extensions.json

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
40 changes: 21 additions & 19 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json",
"cypress/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
Expand Down Expand Up @@ -134,23 +130,29 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/politie/ngx-sherlock/tsconfig.lib.json",
"projects/politie/ngx-sherlock/tsconfig.spec.json",
"cypress/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"projects/politie/ngx-sherlock/**/*.ts",
"projects/politie/ngx-sherlock/**/*.html"
]
}
}
}
}
},
"defaultProject": "ngx-sherlock-dev",
"cli": {
"packageManager": "npm"
"packageManager": "npm",
"schematicCollections": [
"@angular-eslint/schematics"
]
},
"schematics": {
"@angular-eslint/schematics:application": {
"setParserOptionsProject": true
},
"@angular-eslint/schematics:library": {
"setParserOptionsProject": true
}
}
}
}
Loading

0 comments on commit 29af91b

Please sign in to comment.