Skip to content

Commit a8c60db

Browse files
Josmithralexvy86
andauthored
build: Update eslint-config-fluid and other eslint dependencies (#25525)
Updates all packages except those in client. Those will be tackled in a separate PR. While the update to our config did not contain explicit rule changes, upstream configs' rules were updated in ways that affect us. As a result, some code changes were required. --------- Co-authored-by: Alex Villarreal <[email protected]>
1 parent 4cd0319 commit a8c60db

File tree

69 files changed

+11316
-6474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+11316
-6474
lines changed

.github/workflows/website-validation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
3333
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
3434
with:
35-
node-version: "18"
35+
node-version: "20"
3636
cache: "pnpm"
3737
cache-dependency-path: docs/pnpm-lock.yaml
3838
- name: Build site artifact
@@ -61,7 +61,7 @@ jobs:
6161
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
6262
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
6363
with:
64-
node-version: "18"
64+
node-version: "20"
6565
cache: "pnpm"
6666
cache-dependency-path: docs/pnpm-lock.yaml
6767
- name: pnpm lint
@@ -81,7 +81,7 @@ jobs:
8181
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
8282
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
8383
with:
84-
node-version: "18"
84+
node-version: "20"
8585
cache: "pnpm"
8686
cache-dependency-path: docs/pnpm-lock.yaml
8787

@@ -109,7 +109,7 @@ jobs:
109109
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v4
110110
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # ratchet:actions/setup-node@v3
111111
with:
112-
node-version: "18"
112+
node-version: "20"
113113
cache: "pnpm"
114114
cache-dependency-path: docs/pnpm-lock.yaml
115115
- name: Create results folder

build-tools/packages/build-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"devDependencies": {
145145
"@biomejs/biome": "~1.9.3",
146146
"@fluidframework/build-common": "^2.0.3",
147-
"@fluidframework/eslint-config-fluid": "^6.0.0",
147+
"@fluidframework/eslint-config-fluid": "^6.1.0",
148148
"@oclif/test": "^4.1.0",
149149
"@types/async": "^3.2.24",
150150
"@types/chai": "^5.2.1",

build-tools/packages/build-cli/src/library/layerGraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class PackageNode extends BaseNode {
254254
/**
255255
* Packages this package is directly dependent upon
256256
*/
257-
public get childDependencies(): Readonly<PackageNode[]> {
257+
public get childDependencies(): readonly PackageNode[] {
258258
return this._childDependencies;
259259
}
260260

build-tools/packages/build-cli/src/library/repoPolicyCheck/npmPackages.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,7 @@ export const handlers: Handler[] = [
14181418
const mochaScriptName = scripts["test:mocha"] === undefined ? "test" : "test:mocha";
14191419
const mochaScript = scripts[mochaScriptName];
14201420

1421+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- Existing logic is easier to read
14211422
if (mochaScript === undefined || !mochaScript.startsWith("mocha")) {
14221423
// skip irregular test script for now
14231424
return undefined;
@@ -1455,6 +1456,7 @@ export const handlers: Handler[] = [
14551456
const jestScriptName = scripts["test:jest"] === undefined ? "test" : "test:jest";
14561457
const jestScript = scripts[jestScriptName];
14571458

1459+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- Existing logic is easier to read
14581460
if (jestScript === undefined || !jestScript.startsWith("jest")) {
14591461
// skip irregular test script for now
14601462
return undefined;

build-tools/packages/build-infrastructure/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"@fluid-tools/api-markdown-documenter": "^0.17.1",
8484
"@fluidframework/build-common": "^2.0.3",
8585
"@fluidframework/build-tools-bin": "npm:@fluidframework/build-tools@~0.49.0",
86-
"@fluidframework/eslint-config-fluid": "^6.0.0",
86+
"@fluidframework/eslint-config-fluid": "^6.1.0",
8787
"@microsoft/api-extractor": "^7.52.11",
8888
"@types/chai": "^5.2.1",
8989
"@types/chai-arrays": "^2.0.3",

build-tools/packages/build-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@biomejs/biome": "~1.9.3",
7070
"@fluidframework/build-common": "^2.0.3",
7171
"@fluidframework/build-tools-bin": "npm:@fluidframework/build-tools@~0.49.0",
72-
"@fluidframework/eslint-config-fluid": "^6.0.0",
72+
"@fluidframework/eslint-config-fluid": "^6.1.0",
7373
"@types/async": "^3.2.24",
7474
"@types/fs-extra": "^11.0.4",
7575
"@types/glob": "^7.2.0",

build-tools/packages/bundle-size-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@biomejs/biome": "~1.9.3",
5252
"@fluidframework/build-common": "^2.0.3",
5353
"@fluidframework/build-tools-bin": "npm:@fluidframework/build-tools@~0.49.0",
54-
"@fluidframework/eslint-config-fluid": "^6.0.0",
54+
"@fluidframework/eslint-config-fluid": "^6.1.0",
5555
"@microsoft/api-extractor": "^7.52.11",
5656
"@types/msgpack-lite": "^0.1.11",
5757
"@types/node": "^18.19.59",

build-tools/packages/version-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"@biomejs/biome": "~1.9.3",
9090
"@fluidframework/build-common": "^2.0.3",
9191
"@fluidframework/build-tools-bin": "npm:@fluidframework/build-tools@~0.49.0",
92-
"@fluidframework/eslint-config-fluid": "^6.0.0",
92+
"@fluidframework/eslint-config-fluid": "^6.1.0",
9393
"@microsoft/api-extractor": "^7.52.11",
9494
"@oclif/test": "^4.1.0",
9595
"@types/chai": "^5.2.1",

0 commit comments

Comments
 (0)