Skip to content

Commit b666898

Browse files
authored
chore: update angular to 18 (#3262)
* chore: update angular packages to 18 versions * chore: update angular eslint packages to 18 versions * chore: update angular eslint packages to 18 versions * chore: update angular fire and firebase * chore: update angular cdk to 18 * chore: update angular to 18 in framework folder * chore: update angular to 18 in packages-smoke * chore: update angular eslint packages to 18 versions in package smoke * chore: update @schematics/angular and @angular/cdk to 18 versions in package smoke * chore: update npm packages; update lint config(use 9.*.*), fix build after angular 18 updates
1 parent 4202d21 commit b666898

File tree

16 files changed

+32107
-46529
lines changed

16 files changed

+32107
-46529
lines changed

.eslintrc.json

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

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
1515
with:
16-
node-version: 18.13.0
16+
node-version: 18.19.0
1717
cache: 'npm'
1818
- run: npm ci
1919
- run: npm run docs:gh-pages

.github/workflows/pr-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 18.13.0
14+
node-version: 18.19.0
1515
cache: 'npm'
1616
- run: npm ci
1717
- run: npm run build:packages
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v3
2828
- uses: actions/setup-node@v3
2929
with:
30-
node-version: 18.13.0
30+
node-version: 18.19.0
3131
cache: 'npm'
3232
- run: |
3333
npm ci
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/checkout@v3
4141
- uses: actions/setup-node@v3
4242
with:
43-
node-version: 18.13.0
43+
node-version: 18.19.0
4444
- run: npm ci
4545
- run: npm run docs:build
4646
build-playground:
@@ -50,7 +50,7 @@ jobs:
5050
- uses: actions/checkout@v3
5151
- uses: actions/setup-node@v3
5252
with:
53-
node-version: 18.13.0
53+
node-version: 18.19.0
5454
- run: npm ci
5555
- uses: actions/download-artifact@v2
5656
with:
@@ -104,7 +104,7 @@ jobs:
104104
- uses: actions/checkout@v3
105105
- uses: actions/setup-node@v3
106106
with:
107-
node-version: 18.13.0
107+
node-version: 18.19.0
108108
- run: npm ci
109109
- uses: actions/download-artifact@v2
110110
with:
@@ -136,7 +136,7 @@ jobs:
136136
- uses: actions/checkout@v3
137137
- uses: actions/setup-node@v3
138138
with:
139-
node-version: 18.13.0
139+
node-version: 18.19.0
140140
- uses: actions/download-artifact@v2
141141
with:
142142
name: built-packages

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.13.0
1+
18.19.0

eslint.config.mjs

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
import rxjs from "eslint-plugin-rxjs";
2+
import globals from "globals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [{
17+
ignores: [
18+
"src/framework/**/*",
19+
"docs/**/*",
20+
"packages-smoke/**/*",
21+
"tools/dev-schematics/*/files",
22+
],
23+
}, ...compat.extends(
24+
"plugin:@angular-eslint/recommended",
25+
"plugin:@angular-eslint/template/process-inline-templates",
26+
"eslint-config-prettier",
27+
).map(config => ({
28+
...config,
29+
files: ["**/*.ts"],
30+
})), {
31+
files: ["**/*.ts"],
32+
33+
plugins: {
34+
rxjs,
35+
},
36+
37+
languageOptions: {
38+
ecmaVersion: 5,
39+
sourceType: "script",
40+
41+
parserOptions: {
42+
project: ["tsconfig.json", "e2e/tsconfig.json"],
43+
createDefaultProgram: true,
44+
},
45+
},
46+
47+
rules: {
48+
quotes: "off",
49+
"dot-notation": "off",
50+
"no-restricted-globals": ["error", "fit", "fdescribe"],
51+
"@typescript-eslint/dot-notation": "error",
52+
"no-shadow": "off",
53+
"@typescript-eslint/no-shadow": "error",
54+
"no-underscore-dangle": "off",
55+
"@typescript-eslint/consistent-type-definitions": "error",
56+
57+
"rxjs/no-unsafe-takeuntil": ["error", {
58+
allow: [
59+
"count",
60+
"defaultIfEmpty",
61+
"endWith",
62+
"every",
63+
"finalize",
64+
"finally",
65+
"isEmpty",
66+
"last",
67+
"max",
68+
"min",
69+
"publish",
70+
"publishBehavior",
71+
"publishLast",
72+
"publishReplay",
73+
"reduce",
74+
"share",
75+
"shareReplay",
76+
"skipLast",
77+
"takeLast",
78+
"throwIfEmpty",
79+
"toArray",
80+
],
81+
}],
82+
},
83+
}, ...compat.extends("plugin:@angular-eslint/template/recommended", "eslint-config-prettier").map(config => ({
84+
...config,
85+
files: ["**/*.html"],
86+
})), {
87+
files: ["**/*.html"],
88+
rules: {},
89+
}, {
90+
files: ["./*.js"],
91+
92+
languageOptions: {
93+
globals: {
94+
...globals.node,
95+
},
96+
97+
ecmaVersion: 11,
98+
sourceType: "commonjs",
99+
},
100+
}];

0 commit comments

Comments
 (0)