Skip to content

Commit 1fad2c5

Browse files
authored
Upgrade Angular 14 to 15, migrate tslint to ESLint, and remove deprecated tooling (#92)
1 parent 7e525de commit 1fad2c5

11 files changed

Lines changed: 8230 additions & 4624 deletions

.eslintrc.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["projects/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts"],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:@angular-eslint/recommended",
11+
"plugin:@angular-eslint/template/process-inline-templates"
12+
],
13+
"rules": {
14+
"@angular-eslint/directive-selector": [
15+
"error",
16+
{
17+
"type": "attribute",
18+
"prefix": "app",
19+
"style": "camelCase"
20+
}
21+
],
22+
"@angular-eslint/component-selector": [
23+
"error",
24+
{
25+
"type": "element",
26+
"prefix": "app",
27+
"style": "kebab-case"
28+
}
29+
]
30+
}
31+
},
32+
{
33+
"files": ["*.html"],
34+
"extends": [
35+
"plugin:@angular-eslint/template/recommended"
36+
],
37+
"rules": {}
38+
}
39+
]
40+
}

angular.json

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
21-
"aot": true,
2221
"assets": [
2322
"src/favicon.ico",
2423
"src/assets"
@@ -29,7 +28,7 @@
2928
"node_modules/codemirror/lib/codemirror.css",
3029
"node_modules/codemirror/theme/monokai.css",
3130
"node_modules/codemirror/theme/eclipse.css",
32-
"node_modules/material-design-icons/iconfont/material-icons.css"
31+
"node_modules/material-icons/iconfont/material-icons.css"
3332
],
3433
"scripts": [
3534
"node_modules/codemirror/lib/codemirror.js",
@@ -52,12 +51,7 @@
5251
"optimization": true,
5352
"outputHashing": "all",
5453
"sourceMap": false,
55-
"extractCss": true,
56-
"namedChunks": false,
57-
"aot": true,
5854
"extractLicenses": true,
59-
"vendorChunk": false,
60-
"buildOptimizer": true,
6155
"budgets": [
6256
{
6357
"type": "initial",
@@ -108,31 +102,14 @@
108102
}
109103
},
110104
"lint": {
111-
"builder": "@angular-devkit/build-angular:tslint",
105+
"builder": "@angular-eslint/builder:lint",
112106
"options": {
113-
"tsConfig": [
114-
"tsconfig.app.json",
115-
"tsconfig.spec.json",
116-
"e2e/tsconfig.json"
117-
],
118-
"exclude": [
119-
"**/node_modules/**"
107+
"lintFilePatterns": [
108+
"src/**/*.ts",
109+
"src/**/*.html"
120110
]
121111
}
122-
},
123-
"e2e": {
124-
"builder": "@angular-devkit/build-angular:protractor",
125-
"options": {
126-
"protractorConfig": "e2e/protractor.conf.js",
127-
"devServerTarget": "cql-runner:serve"
128-
},
129-
"configurations": {
130-
"production": {
131-
"devServerTarget": "cql-runner:serve:production"
132-
}
133-
}
134112
}
135113
}
136-
}},
137-
"defaultProject": "cql-runner"
114+
}}
138115
}

e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

e2e/src/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/tsconfig.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)