Skip to content

Commit ec03d4c

Browse files
committed
chore: update ts-pattern to version 5.6.1
1 parent 9f75634 commit ec03d4c

File tree

20 files changed

+196
-237
lines changed

20 files changed

+196
-237
lines changed

examples/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"eslint-config-flat-gitignore": "^1.0.0",
3030
"eslint-plugin-react-hooks": "^5.1.0",
3131
"eslint-plugin-react-refresh": "^0.4.18",
32-
"postcss": "8.4.49",
32+
"postcss": "8.5.1",
3333
"tailwindcss": "3.4.17",
3434
"typescript": "^5.7.3",
3535
"typescript-eslint": "^8.20.0"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@napi-rs/canvas": "^0.1.65",
5858
"@stylistic/eslint-plugin": "^2.13.0",
5959
"@susisu/eslint-plugin-safe-typescript": "^0.9.2",
60-
"@swc/core": "^1.10.7",
60+
"@swc/core": "^1.10.8",
6161
"@tsconfig/node22": "^22.0.0",
6262
"@tsconfig/strictest": "^2.0.5",
6363
"@types/node": "^22.10.7",

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@typescript-eslint/types": "^8.20.0",
5151
"@typescript-eslint/utils": "^8.20.0",
5252
"birecord": "^0.1.1",
53-
"ts-pattern": "^5.6.0"
53+
"ts-pattern": "^5.6.1"
5454
},
5555
"devDependencies": {
5656
"@workspace/configs": "workspace:*",

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@typescript-eslint/types": "^8.20.0",
5959
"@typescript-eslint/utils": "^8.20.0",
6060
"string-ts": "^2.2.0",
61-
"ts-pattern": "^5.6.0"
61+
"ts-pattern": "^5.6.1"
6262
},
6363
"devDependencies": {
6464
"@types/react": "^19.0.7",

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"@typescript-eslint/utils": "^8.20.0",
5959
"compare-versions": "^6.1.1",
6060
"string-ts": "^2.2.0",
61-
"ts-pattern": "^5.6.0"
61+
"ts-pattern": "^5.6.1"
6262
},
6363
"devDependencies": {
6464
"@types/react": "^19.0.7",

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@typescript-eslint/types": "^8.20.0",
6060
"@typescript-eslint/utils": "^8.20.0",
6161
"string-ts": "^2.2.0",
62-
"ts-pattern": "^5.6.0"
62+
"ts-pattern": "^5.6.1"
6363
},
6464
"devDependencies": {
6565
"@types/react": "^19.0.7",

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/types": "^8.20.0",
5858
"@typescript-eslint/utils": "^8.20.0",
5959
"string-ts": "^2.2.0",
60-
"ts-pattern": "^5.6.0"
60+
"ts-pattern": "^5.6.1"
6161
},
6262
"devDependencies": {
6363
"@types/react": "^19.0.7",

packages/plugins/eslint-plugin-react-web-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/types": "^8.20.0",
5858
"@typescript-eslint/utils": "^8.20.0",
5959
"string-ts": "^2.2.0",
60-
"ts-pattern": "^5.6.0"
60+
"ts-pattern": "^5.6.1"
6161
},
6262
"devDependencies": {
6363
"@types/react": "^19.0.7",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ const defaultOptions: {
5656
function getCallKind(node: TSESTree.CallExpression): CallKind {
5757
switch (true) {
5858
case node.callee.type === T.Identifier
59-
&& isMatching(P.union("addEventListener", "removeEventListener", "abort"), node.callee.name):
59+
&& isMatching(P.union("addEventListener", "removeEventListener", "abort"))(node.callee.name):
6060
return node.callee.name;
6161
case node.callee.type === T.MemberExpression
6262
&& node.callee.property.type === T.Identifier
63-
&& isMatching(P.union("addEventListener", "removeEventListener", "abort"), node.callee.property.name):
63+
&& isMatching(P.union("addEventListener", "removeEventListener", "abort"))(node.callee.property.name):
6464
return node.callee.property.name;
6565
default:
6666
return "other";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ type CallKind = EventMethodKind | EffectMethodKind | LifecycleMethodKind | "othe
4040
function getCallKind(node: TSESTree.CallExpression): CallKind {
4141
switch (true) {
4242
case node.callee.type === T.Identifier
43-
&& isMatching(P.union("setInterval", "clearInterval"), node.callee.name):
43+
&& isMatching(P.union("setInterval", "clearInterval"))(node.callee.name):
4444
return node.callee.name;
4545
case node.callee.type === T.MemberExpression
4646
&& node.callee.property.type === T.Identifier
47-
&& isMatching(P.union("setInterval", "clearInterval"), node.callee.property.name):
47+
&& isMatching(P.union("setInterval", "clearInterval"))(node.callee.property.name):
4848
return node.callee.property.name;
4949
default:
5050
return "other";

0 commit comments

Comments
 (0)