Skip to content

Commit 19b6bde

Browse files
authored
Merge branch 'main' into no-use-in-try-catch
2 parents 3ce6e36 + f492a8e commit 19b6bde

File tree

37 files changed

+268
-286
lines changed

37 files changed

+268
-286
lines changed

.pkgs/eslint-plugin-local/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@local/configs": "workspace:*",
3737
"@types/react": "^19.0.10",
3838
"@types/react-dom": "^19.0.4",
39-
"tsup": "^8.3.6"
39+
"tsup": "^8.4.0"
4040
},
4141
"peerDependencies": {
4242
"eslint": "^8.57.0 || ^9.0.0",

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## v1.28.0 (2025-02-26)
2+
3+
### ✨ New
4+
5+
- feat(plugins/dom): add `no-flush-sync` rule by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/942
6+
- feat: add [`skipImportCheck`](https://eslint-react.xyz/docs/configurations#skipimportcheck) setting by @Rel1cx
7+
8+
### 🪄 Improvements
9+
10+
- refactor: code optimization by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/945
11+
- refactor: consistent ordering of arguments to context-aware utility functions by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/946
12+
113
## v1.27.0 (2025-02-21)
214

315
### ✨ New

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.28.0-beta.4
1+
1.28.1-beta.0

apps/website/content/docs/changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
title: Changelog
33
---
44

5+
## v1.28.0 (2025-02-26)
6+
7+
### ✨ New
8+
9+
- feat(plugins/dom): add `no-flush-sync` rule by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/942
10+
- feat: add [`skipImportCheck`](https://eslint-react.xyz/docs/configurations#skipimportcheck) setting by @Rel1cx
11+
12+
### 🪄 Improvements
13+
14+
- refactor: code optimization by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/945
15+
- refactor: consistent ordering of arguments to context-aware utility functions by @Rel1cx in https://github.com/Rel1cx/eslint-react/pull/946
16+
517
## v1.27.0 (2025-02-21)
618

719
### ✨ New

apps/website/content/docs/configurations.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ For example, if you are using `@pika/react` instead of `react`, you can set the
4545
import React from "@pika/react";
4646
```
4747

48-
### `strictImportCheck`
48+
### `skipImportCheck`
4949

50-
Check both the shape and the import to determine if an API is from React before applying the rules.
50+
When determining whether an API originates from React, bypass the import source check.
5151

52-
This can prevent false positives when using a irrelevant third-party library that has similar APIs to React.
52+
By default, the rule checks only the shape of the API to determine if it is a React API. If `skipImportCheck` is set to `false`, the rule will check both the shape and the import source.
5353

54-
For example, if you set the `strictImportCheck` to `true`, then the `memo` function from `irrelevant-library` will not be recognized as React's `memo`:
54+
For example, when `skipImportCheck` is set to false, the `memo` function from `unrelated-library` will not be recognized as React's `memo`.
5555

5656
```ts
57-
import { memo } from "irrelevant-library";
57+
import { memo } from "unrelated-library";
5858

5959
const NonComponentFunction = memo(() => {
6060
// ^^^^

apps/website/content/docs/configurations.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ export function SettingsTypeTable() {
1818
description: <Link href="#importsource">The source where React is imported from ⤵</Link>,
1919
default: "react",
2020
},
21-
strictImportCheck: {
21+
skipImportCheck: {
2222
type: "boolean",
2323
description: (
24-
<Link href="#strictimportcheck">
25-
Check both the shape and the import to determine if an API is from React before applying the rules. ⤵
24+
<Link href="#skipimportcheck">
25+
When determining whether an API originates from React, bypass the import source check. ⤵
2626
</Link>
2727
),
28-
default: "false",
28+
default: "true",
2929
},
3030
polymorphicPropName: {
3131
type: "string",

apps/website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"fumadocs-twoslash": "3.0.0",
1919
"fumadocs-typescript": "3.0.3",
2020
"fumadocs-ui": "15.0.12",
21-
"lucide-react": "^0.475.0",
21+
"lucide-react": "^0.476.0",
2222
"next": "^15.1.7",
2323
"next-view-transitions": "^0.3.4",
2424
"react": "^19.0.0",
@@ -33,7 +33,7 @@
3333
"@local/configs": "workspace:*",
3434
"@mdx-js/mdx": "^3.1.0",
3535
"@next/eslint-plugin-next": "^15.1.7",
36-
"@tailwindcss/postcss": "^4.0.8",
36+
"@tailwindcss/postcss": "^4.0.9",
3737
"@tsconfig/next": "^2.0.3",
3838
"@tsconfig/node22": "^22.0.0",
3939
"@tsconfig/strictest": "^2.0.5",
@@ -54,7 +54,7 @@
5454
"eslint-plugin-simple-import-sort": "^12.1.1",
5555
"eslint-plugin-unicorn": "^57.0.0",
5656
"postcss": "^8.5.3",
57-
"tailwindcss": "^4.0.8",
57+
"tailwindcss": "^4.0.9",
5858
"typescript": "^5.7.3",
5959
"typescript-eslint": "^8.25.0"
6060
}

examples/dual-react-dom-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"eslint-plugin-react-x": "workspace:*",
4646
"eslint-plugin-vitest": "^0.5.4",
4747
"react": "^19.0.0",
48-
"tsup": "^8.3.6",
48+
"tsup": "^8.4.0",
4949
"typescript": "^5.7.3",
5050
"typescript-eslint": "^8.25.0"
5151
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/monorepo",
3-
"version": "1.28.0-beta.4",
3+
"version": "1.28.1-beta.0",
44
"private": true,
55
"description": "Monorepo for eslint-plugin-react-[x, dom, web-api, hooks-extra, naming-convention].",
66
"keywords": [
@@ -98,7 +98,7 @@
9898
"tinyexec": "^0.3.2",
9999
"tinyglobby": "^0.2.12",
100100
"ts-pattern": "^5.6.2",
101-
"tsup": "^8.3.6",
101+
"tsup": "^8.4.0",
102102
"tsx": "^4.19.3",
103103
"type-fest": "^4.35.0",
104104
"typedoc": "^0.27.9",

packages/core/docs/functions/isFromReactMemberLoose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Function: isFromReactMemberLoose()
88

9-
> **isFromReactMemberLoose**(`node`, `memberName`, `name`): `boolean`
9+
> **isFromReactMemberLoose**(`node`, `memberName`, `name`): `node is MemberExpression & { object: { name: string }; property: { name: string } }`
1010
1111
## Parameters
1212

@@ -24,4 +24,4 @@
2424

2525
## Returns
2626

27-
`boolean`
27+
`node is MemberExpression & { object: { name: string }; property: { name: string } }`

0 commit comments

Comments
 (0)