Skip to content

Commit 0f7a1dd

Browse files
author
a.idzikowski
committed
Update Angular to v13 and FA to 6.0.0
1 parent 0f48028 commit 0f7a1dd

21 files changed

+5423
-11447
lines changed

.browserslistrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
8+
# You can see what browsers were selected by your queries by running:
9+
# npx browserslist
10+
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
16+
Firefox ESR

.eslintrc.json

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.angular/cache
12
node_modules
23
dist
34
.idea

angular.json

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"optimization": true,
5858
"outputHashing": "all",
5959
"sourceMap": false,
60-
"extractCss": true,
6160
"namedChunks": false,
6261
"extractLicenses": true,
6362
"vendorChunk": false,
@@ -113,42 +112,11 @@
113112
}
114113
},
115114
"lint": {
116-
"builder": "@angular-devkit/build-angular:tslint",
115+
"builder": "@angular-eslint/builder:lint",
117116
"options": {
118-
"tsConfig": [
119-
"src/tsconfig.app.json",
120-
"src/tsconfig.spec.json"
121-
],
122-
"exclude": [
123-
"**/node_modules/**"
124-
]
125-
}
126-
}
127-
}
128-
},
129-
"angular-bootstrap-md-app-e2e": {
130-
"root": "e2e/",
131-
"projectType": "application",
132-
"prefix": "",
133-
"architect": {
134-
"e2e": {
135-
"builder": "@angular-devkit/build-angular:protractor",
136-
"options": {
137-
"protractorConfig": "e2e/protractor.conf.js",
138-
"devServerTarget": "angular-bootstrap-md-app:serve"
139-
},
140-
"configurations": {
141-
"production": {
142-
"devServerTarget": "angular-bootstrap-md-app:serve:production"
143-
}
144-
}
145-
},
146-
"lint": {
147-
"builder": "@angular-devkit/build-angular:tslint",
148-
"options": {
149-
"tsConfig": "e2e/tsconfig.e2e.json",
150-
"exclude": [
151-
"**/node_modules/**"
117+
"lintFilePatterns": [
118+
"src/**/*.ts",
119+
"src/**/*.html"
152120
]
153121
}
154122
}
@@ -181,19 +149,19 @@
181149
}
182150
},
183151
"lint": {
184-
"builder": "@angular-devkit/build-angular:tslint",
152+
"builder": "@angular-eslint/builder:lint",
185153
"options": {
186-
"tsConfig": [
187-
"projects/angular-bootstrap-md/tsconfig.lib.json",
188-
"projects/angular-bootstrap-md/tsconfig.spec.json"
189-
],
190-
"exclude": [
191-
"**/node_modules/**"
154+
"lintFilePatterns": [
155+
"projects/angular-bootstra-md/**/*.ts",
156+
"projects/angular-bootstra-md/**/*.html"
192157
]
193158
}
194159
}
195160
}
196161
}
197162
},
198-
"defaultProject": "angular-bootstrap-md-app"
163+
"defaultProject": "angular-bootstrap-md-app",
164+
"cli": {
165+
"defaultCollection": "@angular-eslint/schematics"
166+
}
199167
}

e2e/protractor.conf.js

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

e2e/src/app.e2e-spec.ts

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

e2e/src/app.po.ts

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

e2e/tsconfig.e2e.json

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

0 commit comments

Comments
 (0)