Skip to content

Commit 3ed9df7

Browse files
author
danny.collodet
committed
Update Angular 18.0.1 & React 18.3.1
1 parent 12da398 commit 3ed9df7

25 files changed

+14779
-17276
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Angular 17 & React 18 Examples Bootstrap
1+
# Angular 18 & React 18 Examples Bootstrap
22

33
<table>
44
<tr>
@@ -10,9 +10,9 @@
1010

1111
it's part of a repo series designed
1212

13-
to create a **Web Application with Angular 17**
13+
to create a **Web Application with Angular 18**
1414

15-
* Featuring [**Angular 17.0.8**](https://github.com/angular/angular/releases) & [**Angular CLI 17.0.9**](https://github.com/angular/angular-cli/releases/)
15+
* Featuring [**Angular 18.0.1**](https://github.com/angular/angular/releases) & [**Angular CLI 18.0.2**](https://github.com/angular/angular-cli/releases/)
1616

1717

1818
* See the [**Live demo**](#angular-live-demo), Test the repo with [**Quick start**](#angular-quick-start) and for more information Read the step by step [**Tutorial**](#angular-tutorial) or read the [**Getting started**](#angular-getting-started)
@@ -21,7 +21,7 @@ to create a **Web Application with Angular 17**
2121
to create a **Web Application with React 18**
2222

2323

24-
* Featuring [**React 18.2.0**](https://github.com/facebook/react/releases) & [**Create-react-app 5.0.1**](https://github.com/facebook/create-react-app/releases)
24+
* Featuring [**React 18.3.1**](https://github.com/facebook/react/releases) & [**Create-react-app 5.0.1**](https://github.com/facebook/create-react-app/releases)
2525

2626

2727

angular/.eslintrc.json

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

angular/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
44
/dist

angular/angular.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
],
2222
"tsConfig": "tsconfig.app.json",
2323
"assets": [
24-
"src/favicon.ico",
24+
{
25+
"glob": "**/*",
26+
"input": "public"
27+
},
2528
"src/assets"
2629
],
2730
"styles": [
@@ -39,13 +42,13 @@
3942
"budgets": [
4043
{
4144
"type": "initial",
42-
"maximumWarning": "1mb",
43-
"maximumError": "1mb"
45+
"maximumWarning": "500kB",
46+
"maximumError": "1MB"
4447
},
4548
{
4649
"type": "anyComponentStyle",
47-
"maximumWarning": "4kb",
48-
"maximumError": "4kb"
50+
"maximumWarning": "2kB",
51+
"maximumError": "4kB"
4952
}
5053
],
5154
"outputHashing": "all"
@@ -77,10 +80,7 @@
7780
"defaultConfiguration": "development"
7881
},
7982
"extract-i18n": {
80-
"builder": "@angular-devkit/build-angular:extract-i18n",
81-
"options": {
82-
"buildTarget": "angular-starter:build"
83-
}
83+
"builder": "@angular-devkit/build-angular:extract-i18n"
8484
},
8585
"test": {
8686
"builder": "@angular-devkit/build-angular:karma",
@@ -91,8 +91,10 @@
9191
],
9292
"tsConfig": "tsconfig.spec.json",
9393
"assets": [
94-
"src/favicon.ico",
95-
"src/assets"
94+
{
95+
"glob": "**/*",
96+
"input": "public"
97+
}
9698
],
9799
"styles": [
98100
"src/styles.css"
@@ -117,4 +119,4 @@
117119
"@angular-eslint/schematics"
118120
]
119121
}
120-
}
122+
}

angular/eslint.config.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// @ts-check
2+
const eslint = require("@eslint/js");
3+
const tseslint = require("typescript-eslint");
4+
const angular = require("angular-eslint");
5+
6+
module.exports = tseslint.config(
7+
{
8+
files: ["**/*.ts"],
9+
extends: [
10+
eslint.configs.recommended,
11+
...tseslint.configs.recommended,
12+
...tseslint.configs.stylistic,
13+
...angular.configs.tsRecommended,
14+
],
15+
processor: angular.processInlineTemplates,
16+
rules: {
17+
"@angular-eslint/directive-selector": [
18+
"error",
19+
{
20+
type: "attribute",
21+
prefix: "app",
22+
style: "camelCase",
23+
},
24+
],
25+
"@angular-eslint/component-selector": [
26+
"error",
27+
{
28+
type: "element",
29+
prefix: "app",
30+
style: "kebab-case",
31+
},
32+
],
33+
"no-undefined": "error",
34+
"no-var": "error",
35+
"prefer-const": "error",
36+
"func-names": "error",
37+
"id-length": "error",
38+
"newline-before-return": "error",
39+
"space-before-blocks": "error",
40+
"no-alert": "error"
41+
},
42+
},
43+
{
44+
files: ["**/*.html"],
45+
extends: [
46+
...angular.configs.templateRecommended,
47+
...angular.configs.templateAccessibility,
48+
],
49+
rules: {},
50+
}
51+
);

0 commit comments

Comments
 (0)