Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 753b36b

Browse files
author
danny.collodet
committed
Update Angular 18.0.1 & React 18.3.1
1 parent 110b1af commit 753b36b

24 files changed

+27705
-32736
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 Lazy Loading
1+
# Angular 18 & React 18 Examples Lazy Loading
22

33
<table>
44
<tr>
@@ -10,10 +10,10 @@
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

1515

16-
* Featuring [**Angular 17.0.7**](https://github.com/angular/angular/releases) & [**Angular CLI 17.0.7**](https://github.com/angular/angular-cli/releases/)
16+
* Featuring [**Angular 18.0.1**](https://github.com/angular/angular/releases) & [**Angular CLI 18.0.2**](https://github.com/angular/angular-cli/releases/)
1717

1818

1919
* 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)
@@ -22,7 +22,7 @@ to create a **Web Application with Angular 17**
2222
to create a **Web Application with React 18**
2323

2424

25-
* 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)
25+
* 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)
2626

2727

2828
</td>

‎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/.vscode/extensions.json

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

‎angular/.vscode/launch.json

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

‎angular/.vscode/tasks.json

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

‎angular/angular.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
],
2222
"tsConfig": "tsconfig.app.json",
2323
"assets": [
24-
"src/favicon.ico",
25-
"src/assets"
24+
{
25+
"glob": "**/*",
26+
"input": "public"
27+
}
2628
],
2729
"styles": [
2830
"src/styles.css"
@@ -34,13 +36,13 @@
3436
"budgets": [
3537
{
3638
"type": "initial",
37-
"maximumWarning": "500kb",
38-
"maximumError": "1mb"
39+
"maximumWarning": "500kB",
40+
"maximumError": "1MB"
3941
},
4042
{
4143
"type": "anyComponentStyle",
42-
"maximumWarning": "2kb",
43-
"maximumError": "4kb"
44+
"maximumWarning": "2kB",
45+
"maximumError": "4kB"
4446
}
4547
],
4648
"outputHashing": "all"
@@ -72,10 +74,7 @@
7274
"defaultConfiguration": "development"
7375
},
7476
"extract-i18n": {
75-
"builder": "@angular-devkit/build-angular:extract-i18n",
76-
"options": {
77-
"buildTarget": "angular-starter:build"
78-
}
77+
"builder": "@angular-devkit/build-angular:extract-i18n"
7978
},
8079
"test": {
8180
"builder": "@angular-devkit/build-angular:karma",
@@ -86,8 +85,10 @@
8685
],
8786
"tsConfig": "tsconfig.spec.json",
8887
"assets": [
89-
"src/favicon.ico",
90-
"src/assets"
88+
{
89+
"glob": "**/*",
90+
"input": "public"
91+
}
9192
],
9293
"styles": [
9394
"src/styles.css"

‎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)

AltStyle によって変換されたページ (->オリジナル) /