Skip to content

Commit ab4b687

Browse files
committed
wip
1 parent 4a1ee3e commit ab4b687

File tree

1 file changed

+24
-24
lines changed
  • src/content/reference/eslint-plugin-react-hooks/lints

1 file changed

+24
-24
lines changed

src/content/reference/eslint-plugin-react-hooks/lints/config.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,44 @@ title: config
44

55
<Intro>
66

7-
Validates the compiler [configuration options](/reference/react-compiler/configuration).
7+
컴파일러 [설정 옵션](/reference/react-compiler/configuration)을 검증합니다.
88

99
</Intro>
1010

11-
## Rule Details {/*rule-details*/}
11+
## 규칙 세부 사항 {/*rule-details*/}
1212

13-
React Compiler accepts various [configuration options](/reference/react-compiler/configuration) to control its behavior. This rule validates that your configuration uses correct option names and value types, preventing silent failures from typos or incorrect settings.
13+
React 컴파일러는 동작을 제어하기 위해 다양한 [설정 옵션](/reference/react-compiler/configuration)을 받습니다. 이 규칙은 설정이 올바른 옵션 이름과 값 타입을 사용하는지 검증하여 오타나 잘못된 설정으로 인한 무시되는 오류를 방지합니다.
1414

15-
### Invalid {/*invalid*/}
15+
### 잘못된 예 {/*invalid*/}
1616

17-
Examples of incorrect code for this rule:
17+
이 규칙에 대한 잘못된 코드 예시입니다.
1818

1919
```js
20-
//Unknown option name
20+
//알 수 없는 옵션 이름
2121
module.exports = {
2222
plugins: [
2323
['babel-plugin-react-compiler', {
24-
compileMode: 'all' // Typo: should be compilationMode
24+
compileMode: 'all' // 오타: compilationMode여야 함
2525
}]
2626
]
2727
};
2828

29-
//Invalid option value
29+
//유효하지 않은 옵션 값
3030
module.exports = {
3131
plugins: [
3232
['babel-plugin-react-compiler', {
33-
compilationMode: 'everything' // Invalid: use 'all' or 'infer'
33+
compilationMode: 'everything' // 유효하지 않음: 'all' 또는 'infer'를 사용하세요
3434
}]
3535
]
3636
};
3737
```
3838

39-
### Valid {/*valid*/}
39+
### 올바른 예 {/*valid*/}
4040

41-
Examples of correct code for this rule:
41+
이 규칙에 대한 올바른 코드 예시입니다.
4242

4343
```js
44-
//Valid compiler configuration
44+
//유효한 컴파일러 설정
4545
module.exports = {
4646
plugins: [
4747
['babel-plugin-react-compiler', {
@@ -52,38 +52,38 @@ module.exports = {
5252
};
5353
```
5454

55-
## Troubleshooting {/*troubleshooting*/}
55+
## 문제 해결 {/*troubleshooting*/}
5656

57-
### Configuration not working as expected {/*config-not-working*/}
57+
### 설정이 예상대로 작동하지 않는 경우 {/*config-not-working*/}
5858

59-
Your compiler configuration might have typos or incorrect values:
59+
컴파일러 설정에 오타나 잘못된 값이 있을 수 있습니다.
6060

6161
```js
62-
//Wrong: Common configuration mistakes
62+
//잘못된 예: 일반적인 설정 실수
6363
module.exports = {
6464
plugins: [
6565
['babel-plugin-react-compiler', {
66-
// Typo in option name
66+
// 옵션 이름 오타
6767
compilationMod: 'all',
68-
// Wrong value type
68+
// 잘못된 값 타입
6969
panicThreshold: true,
70-
// Unknown option
70+
// 알 수 없는 옵션
7171
optimizationLevel: 'max'
7272
}]
7373
]
7474
};
7575
```
7676

77-
Check the [configuration documentation](/reference/react-compiler/configuration) for valid options:
77+
유효한 옵션은 [설정 문서](/reference/react-compiler/configuration)를 확인하세요.
7878

7979
```js
80-
//Better: Valid configuration
80+
//더 나은 방법: 유효한 설정
8181
module.exports = {
8282
plugins: [
8383
['babel-plugin-react-compiler', {
84-
compilationMode: 'all', // or 'infer'
85-
panicThreshold: 'none', // or 'critical_errors', 'all_errors'
86-
// Only use documented options
84+
compilationMode: 'all', // 또는 'infer'
85+
panicThreshold: 'none', // 또는 'critical_errors', 'all_errors'
86+
// 문서화된 옵션만 사용하세요
8787
}]
8888
]
8989
};

0 commit comments

Comments
 (0)