Skip to content

Commit f0d9c1c

Browse files
docs: translate config.md to Português (Brasil) (#1212)
Co-authored-by: translate-react-bot[bot] <251169733+translate-react-bot[bot]@users.noreply.github.com>
1 parent ca87fb9 commit f0d9c1c

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

  • src/content/reference/eslint-plugin-react-hooks/lints

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

Lines changed: 25 additions & 25 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+
Valida as [opções de configuração](/reference/react-compiler/configuration) do compilador.
88

99
</Intro>
1010

11-
## Rule Details {/*rule-details*/}
11+
## Detalhes da Regra {/*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+
O React Compiler aceita várias [opções de configuração](/reference/react-compiler/configuration) para controlar seu comportamento. Esta regra valida que sua configuração usa nomes de opções e tipos de valor corretos, prevenindo falhas silenciosas por erros de digitação ou configurações incorretas.
1414

15-
### Invalid {/*invalid*/}
15+
### Inválido {/*invalid*/}
1616

17-
Examples of incorrect code for this rule:
17+
Exemplos de código incorreto para esta regra:
1818

1919
```js
20-
//Unknown option name
20+
//Nome de opção desconhecido
2121
module.exports = {
2222
plugins: [
2323
['babel-plugin-react-compiler', {
24-
compileMode: 'all' // Typo: should be compilationMode
24+
compileMode: 'all' // Erro de digitação: deveria ser compilationMode
2525
}]
2626
]
2727
};
2828

29-
//Invalid option value
29+
//Valor de opção inválido
3030
module.exports = {
3131
plugins: [
3232
['babel-plugin-react-compiler', {
33-
compilationMode: 'everything' // Invalid: use 'all' or 'infer'
33+
compilationMode: 'everything' // Inválido: use 'all' ou 'infer'
3434
}]
3535
]
3636
};
3737
```
3838

39-
### Valid {/*valid*/}
39+
### Válido {/*valid*/}
4040

41-
Examples of correct code for this rule:
41+
Exemplos de código correto para esta regra:
4242

4343
```js
44-
//Valid compiler configuration
44+
//Configuração de compilador válida
4545
module.exports = {
4646
plugins: [
4747
['babel-plugin-react-compiler', {
@@ -52,39 +52,39 @@ module.exports = {
5252
};
5353
```
5454

55-
## Troubleshooting {/*troubleshooting*/}
55+
## Solução de Problemas {/*troubleshooting*/}
5656

57-
### Configuration not working as expected {/*config-not-working*/}
57+
### Configuração não funciona como esperado {/*config-not-working*/}
5858

59-
Your compiler configuration might have typos or incorrect values:
59+
Sua configuração do compilador pode ter erros de digitação ou valores incorretos:
6060

6161
```js
62-
//Wrong: Common configuration mistakes
62+
//Errado: Erros comuns de configuração
6363
module.exports = {
6464
plugins: [
6565
['babel-plugin-react-compiler', {
66-
// Typo in option name
66+
// Erro de digitação no nome da opção
6767
compilationMod: 'all',
68-
// Wrong value type
68+
// Tipo de valor incorreto
6969
panicThreshold: true,
70-
// Unknown option
70+
// Opção desconhecida
7171
optimizationLevel: 'max'
7272
}]
7373
]
7474
};
7575
```
7676

77-
Check the [configuration documentation](/reference/react-compiler/configuration) for valid options:
77+
Verifique a [documentação de configuração](/reference/react-compiler/configuration) para opções válidas:
7878

7979
```js
80-
//Better: Valid configuration
80+
//Melhor: Configuração válida
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', // ou 'infer'
85+
panicThreshold: 'none', // ou 'critical_errors', 'all_errors'
86+
// Use apenas opções documentadas
8787
}]
8888
]
8989
};
90-
```
90+
```

0 commit comments

Comments
 (0)