Skip to content

Commit 26040a9

Browse files
authored
Merge pull request #300 from ceotrammell/upgrade-demo-angular-15
chore: upgrade angular test project to angular 15
2 parents 7ca777f + 0f4d798 commit 26040a9

File tree

8 files changed

+9315
-30113
lines changed

8 files changed

+9315
-30113
lines changed

examples/angular/.eslintrc.json

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

examples/angular/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ npm-debug.log*
2929
/platforms
3030
/plugins
3131
/www
32+
/.angular

examples/angular/angular.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
4-
"defaultProject": "app",
54
"newProjectRoot": "projects",
65
"projects": {
76
"app": {
@@ -14,6 +13,9 @@
1413
"build": {
1514
"builder": "@angular-devkit/build-angular:browser",
1615
"options": {
16+
"allowedCommonJsDependencies": [
17+
"localforage"
18+
],
1719
"outputPath": "www",
1820
"index": "src/index.html",
1921
"main": "src/main.ts",
@@ -71,9 +73,6 @@
7173
"configurations": {
7274
"production": {
7375
"browserTarget": "app:build:production"
74-
},
75-
"ci": {
76-
"progress": false
7776
}
7877
}
7978
},
@@ -113,7 +112,7 @@
113112
}
114113
},
115114
"lint": {
116-
"builder": "@angular-devkit/build-angular:tslint",
115+
"builder": "@angular-eslint/builder:lint",
117116
"options": {
118117
"tsConfig": [
119118
"tsconfig.app.json",
@@ -165,9 +164,6 @@
165164
}
166165
}
167166
},
168-
"cli": {
169-
"defaultCollection": "@ionic/angular-toolkit"
170-
},
171167
"schematics": {
172168
"@ionic/angular-toolkit:component": {
173169
"styleext": "scss"

0 commit comments

Comments
 (0)