Skip to content

Commit ef66b49

Browse files
committed
build: update deps
1 parent 0dd349a commit ef66b49

File tree

7 files changed

+263
-263
lines changed

7 files changed

+263
-263
lines changed

examples/vite-react-dom-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint": "^9.15.0",
2727
"eslint-plugin-react-hooks": "rc",
2828
"eslint-plugin-react-refresh": "^0.4.14",
29-
"typescript": "^5.6.3",
29+
"typescript": "^5.7.2",
3030
"typescript-eslint": "^8.15.0",
3131
"vite": "^5.4.11"
3232
}

examples/webpack-react-dom-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@tsconfig/node22": "22.0.0",
2626
"@tsconfig/strictest": "2.0.5",
2727
"@types/dotenv-webpack": "7.0.7",
28-
"@types/node": "^22.9.1",
28+
"@types/node": "^22.9.2",
2929
"@types/react": "^18.3.12",
3030
"@types/react-dom": "^18.3.1",
3131
"css-loader": "^7.1.2",
@@ -40,7 +40,7 @@
4040
"html-webpack-plugin": "^5.6.3",
4141
"style-loader": "^4.0.0",
4242
"ts-loader": "^9.5.1",
43-
"typescript": "^5.6.3",
43+
"typescript": "^5.7.2",
4444
"typescript-eslint": "^8.15.0",
4545
"webpack": "^5.96.1",
4646
"webpack-cli": "^5.1.4",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"@swc/core": "^1.9.3",
6161
"@tsconfig/node22": "^22.0.0",
6262
"@tsconfig/strictest": "^2.0.5",
63-
"@types/node": "^22.9.1",
63+
"@types/node": "^22.9.2",
6464
"@types/react": "^18.3.12",
6565
"@types/react-dom": "^18.3.1",
6666
"@typescript-eslint/eslint-plugin": "^8.15.0",
@@ -92,7 +92,7 @@
9292
"publint": "^0.2.12",
9393
"react": "^18.3.1",
9494
"react-dom": "^18.3.1",
95-
"skott": "^0.35.3",
95+
"skott": "^0.35.4",
9696
"sort-package-json": "^2.11.0",
9797
"std-env": "^3.8.0",
9898
"tinyglobby": "^0.2.10",
@@ -104,7 +104,7 @@
104104
"typedoc": "^0.26.11",
105105
"typedoc-plugin-markdown": "^4.2.10",
106106
"typedoc-plugin-rename-defaults": "^0.7.1",
107-
"typescript": "^5.6.3",
107+
"typescript": "^5.7.2",
108108
"typescript-eslint": "^8.15.0",
109109
"vitest": "^2.1.5"
110110
},
@@ -125,7 +125,7 @@
125125
"safer-buffer": "npm:@nolyfill/safer-buffer@^1.0.41",
126126
"side-channel": "npm:@nolyfill/side-channel@^1.0.29",
127127
"typedarray": "npm:@nolyfill/typedarray@^1.0.29",
128-
"typescript": "^5.6.3"
128+
"typescript": "^5.7.2"
129129
}
130130
}
131131
}

packages/plugins/eslint-plugin-react-web-api/src/rules/no-leaked-event-listener.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as AST from "@eslint-react/ast";
33
import type { EREffectMethodKind, ERLifecycleMethodKind, ERPhaseKind } from "@eslint-react/core";
44
import { getPhaseKindOfFunction, isInversePhase, PHASE_RELEVANCE } from "@eslint-react/core";
55
import * as JSX from "@eslint-react/jsx";
6-
import { Data, F, isBoolean, O } from "@eslint-react/tools";
6+
import { F, isBoolean, O } from "@eslint-react/tools";
77
import * as VAR from "@eslint-react/var";
88
import type { Scope } from "@typescript-eslint/scope-manager";
99
import type { TSESTree } from "@typescript-eslint/utils";
@@ -42,11 +42,11 @@ export type REntry = EventListenerEntry & { _tag: "RemoveEventListener" };
4242

4343
// #region Helpers
4444

45-
const defaultOptions = Data.struct({
45+
const defaultOptions = {
4646
capture: O.some<boolean>(false),
4747
once: O.some<boolean>(false),
4848
signal: O.none<TSESTree.Node>(),
49-
});
49+
};
5050

5151
function getCallKind(node: TSESTree.CallExpression): CallKind {
5252
switch (true) {
@@ -95,7 +95,7 @@ function getOptions(node: TSESTree.CallExpressionArgument, initialScope: Scope):
9595
}
9696
case AST_NODE_TYPES.Literal: {
9797
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
98-
return Data.struct({ ...defaultOptions, capture: O.some(!!node.value) });
98+
return { ...defaultOptions, capture: O.some(!!node.value) };
9999
}
100100
case AST_NODE_TYPES.ObjectExpression: {
101101
const pOnce = findProp(node.properties, "once");
@@ -122,7 +122,7 @@ function getOptions(node: TSESTree.CallExpressionArgument, initialScope: Scope):
122122
};
123123
return getSignalExp(value);
124124
});
125-
return Data.struct({ capture: vCapture, once: vOnce, signal: vSignal });
125+
return { capture: vCapture, once: vOnce, signal: vSignal };
126126
}
127127
default: {
128128
return defaultOptions;

packages/shared/src/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const INITIAL_ESLINT_REACT_SETTINGS = {} as const satisfies ESLintReactSe
3030
export function unsafeReadSettings(data: unknown): PartialDeep<ESLintReactSettings> {
3131
// @ts-expect-error - skip type checking for unsafe cast
3232
// eslint-disable-next-line @susisu/safe-typescript/no-type-assertion, @typescript-eslint/no-unsafe-type-assertion
33-
return Data.struct(data?.["react-x"] ?? {}) as PartialDeep<ESLintReactSettings>;
33+
return (data?.["react-x"] ?? {}) as PartialDeep<ESLintReactSettings>;
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)