Skip to content

Commit f86defe

Browse files
authored
Merge branch 'main' into no-use-in-try-catch
2 parents 3c5339e + 6a6f8ff commit f86defe

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default tseslint.config({
5050
extends: [
5151
eslintJs.configs.recommended,
5252
tseslint.configs.recommended,
53-
eslintReact.configs.recommended,
53+
eslintReact.configs["recommended-typescript"],
5454
],
5555
languageOptions: {
5656
parser: tseslint.parser,

apps/website/content/docs/advanced-configuration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default [
1313
// ...
1414
{
1515
files: ["**/*.{ts,tsx}"],
16-
...eslintReact.configs.recommended,
16+
...eslintReact.configs["recommended-typescript"],
1717
settings: {
1818
"react-x": {
1919
version: "19.0.0",

apps/website/content/docs/configurations.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ import React from "@pika/react";
4949

5050
When determining whether an API originates from React, bypass the import source check.
5151

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.
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`, both the shape and the import source will be checked.
5353

54-
For example, when `skipImportCheck` is set to false, the `memo` function from `unrelated-library` will not be recognized as React's `memo`.
54+
This prevents false positives when using unrelated third-party libraries that have APIs similar to React.
55+
56+
For example, when `skipImportCheck` is set to `false`, the `memo` function from `unrelated-library` will not be recognized as React's `memo`.
5557

5658
```ts
5759
import { memo } from "unrelated-library";
@@ -159,7 +161,7 @@ export default [
159161
// ...
160162
{
161163
files: ["**/*.{ts,tsx}"],
162-
...eslintReact.configs.recommended,
164+
...eslintReact.configs["recommended-typescript"],
163165
settings: {
164166
"react-x": {
165167
version: "19.0.0",

apps/website/content/docs/getting-started/typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default tseslint.config({
2323
extends: [
2424
eslintJs.configs.recommended,
2525
tseslint.configs.recommended,
26-
eslintReact.configs.recommended,
26+
eslintReact.configs["recommended-typescript"],
2727
],
2828
languageOptions: {
2929
parser: tseslint.parser,

apps/website/content/docs/using-an-alternative-parser/ts-blank-eslint-parser.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default [
6565
// React configuration
6666
{
6767
files: GLOB_TS,
68-
...eslintReact.configs.recommended,
68+
...eslintReact.configs["recommended-typescript"],
6969
},
7070
];
7171
```

examples/vite-react-dom-with-ts-blank-eslint-parser-app/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default [
5858
// React configuration
5959
{
6060
files: TSCONFIG.include,
61-
...eslintReact.configs.recommended,
61+
...eslintReact.configs["recommended-typescript"],
6262
},
6363
// React Hooks configuration
6464
{

packages/plugins/eslint-plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default tseslint.config({
5050
extends: [
5151
eslintJs.configs.recommended,
5252
tseslint.configs.recommended,
53-
eslintReact.configs.recommended,
53+
eslintReact.configs["recommended-typescript"],
5454
],
5555
languageOptions: {
5656
parser: tseslint.parser,

0 commit comments

Comments
 (0)