Skip to content

Commit b232f5c

Browse files
committed
refactor: fix types
1 parent 3a07171 commit b232f5c

File tree

11 files changed

+280
-280
lines changed

11 files changed

+280
-280
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@swc/core": "1.3.105",
6565
"@tsconfig/node20": "20.1.2",
6666
"@tsconfig/strictest": "2.0.2",
67-
"@types/node": "20.11.5",
67+
"@types/node": "20.11.6",
6868
"@typescript-eslint/eslint-plugin": ">=6.19.1",
6969
"@typescript-eslint/parser": ">=6.19.1",
7070
"@typescript-eslint/rule-tester": ">=6.19.1",
@@ -74,7 +74,7 @@
7474
"cspell": "8.3.2",
7575
"dedent": "1.5.1",
7676
"dprint": "0.45.0",
77-
"effect": "2.2.0",
77+
"effect": "2.2.1",
7878
"eslint": ">=8.56.0",
7979
"eslint-config-with-tsconfig": "2.14.1",
8080
"eslint-plugin-eslint-plugin": "5.2.1",
@@ -98,7 +98,7 @@
9898
"tiny-invariant": "1.3.1",
9999
"ts-pattern": "5.0.6",
100100
"turbo": "1.11.3",
101-
"type-fest": "4.10.0",
101+
"type-fest": "4.10.1",
102102
"typedoc": "0.25.7",
103103
"typedoc-plugin-markdown": "3.17.1",
104104
"typedoc-plugin-mermaid": "1.10.0",
@@ -123,7 +123,7 @@
123123
"@typescript-eslint/utils": ">=6.19.1",
124124
"@typescript-eslint/eslint-plugin": ">=6.19.1",
125125
"eslint": ">=8.56.0",
126-
"effect": "2.2.0",
126+
"effect": "2.2.1",
127127
"next": "14.1.0",
128128
"react": "18.2.0",
129129
"react-dom": "18.2.0",

packages/plugins/eslint-plugin-react/src/rules/no-unsafe-iframe-sandbox.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ export default createRule<[], MessageID>({
5050
value: P.string,
5151
},
5252
})),
53-
O.flatMapNullable(v => v.value.value),
53+
O.flatMapNullable(v => "value" in v ? v.value : null),
54+
O.flatMapNullable(v => "value" in v ? v.value : null),
55+
O.filter(Prd.isString),
5456
O.map(v => v.split(" ")),
5557
O.exists(values =>
5658
unsafeCombinations.some(combinations => combinations.every(unsafeValue => values.includes(unsafeValue)))

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@
4747
"valibot": "0.26.0"
4848
},
4949
"devDependencies": {
50-
"type-fest": "4.10.0"
50+
"type-fest": "4.10.1"
5151
}
5252
}

0 commit comments

Comments
 (0)