ajustes
This commit is contained in:
parent
b132aa8005
commit
7c9e08908c
2 changed files with 3 additions and 3 deletions
|
|
@ -159,7 +159,7 @@ export const MeuComponente = defineComponent({
|
||||||
|
|
||||||
| Regra | Descrição |
|
| Regra | Descrição |
|
||||||
|-------|-----------|
|
|-------|-----------|
|
||||||
| `useArrowFunction` | Prefira arrow functions |
|
| `useArrowFunction` | **Sempre use arrow function** — `function` é erro |
|
||||||
| `noNonNullAssertion` | Evite `!` — trate o null |
|
| `noNonNullAssertion` | Evite `!` — trate o null |
|
||||||
| `noDelete` | `delete obj.prop` é lento |
|
| `noDelete` | `delete obj.prop` é lento |
|
||||||
| `noEmptyBlockStatements` | Blocos `{}` vazios |
|
| `noEmptyBlockStatements` | Blocos `{}` vazios |
|
||||||
|
|
@ -216,7 +216,7 @@ pnpm teste # Vitest (testes unitários)
|
||||||
|
|
||||||
- ❌ Não use `eslint` — o projeto usa Biome
|
- ❌ Não use `eslint` — o projeto usa Biome
|
||||||
- ❌ Não use `prettier` — o projeto usa Biome
|
- ❌ Não use `prettier` — o projeto usa Biome
|
||||||
- ❌ Não use `var` — sempre `const` ou `let`
|
- ❌ Não use `function` nomeada — sempre arrow function (`const fn = () => {}`)
|
||||||
- ❌ Não use Vue Options API — sempre Composition API
|
- ❌ Não use Vue Options API — sempre Composition API
|
||||||
- ❌ Não desestrure `props` diretamente (quebra reatividade)
|
- ❌ Não desestrure `props` diretamente (quebra reatividade)
|
||||||
- ❌ Não use `any` — use `unknown` + type narrowing
|
- ❌ Não use `any` — use `unknown` + type narrowing
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
"noUselessConstructor": "off",
|
"noUselessConstructor": "off",
|
||||||
"noBannedTypes": "off",
|
"noBannedTypes": "off",
|
||||||
"useLiteralKeys": "off",
|
"useLiteralKeys": "off",
|
||||||
"useArrowFunction": "warn",
|
"useArrowFunction": "error",
|
||||||
"useDateNow": "off",
|
"useDateNow": "off",
|
||||||
"noUselessFragments": "off",
|
"noUselessFragments": "off",
|
||||||
"noExcessiveCognitiveComplexity": {
|
"noExcessiveCognitiveComplexity": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue