Skip to content

Commit e510e88

Browse files
committed
update docusaurus
1 parent e0c8343 commit e510e88

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

website/src/pages/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,16 @@ const renderUserAvatar = (avatar: string) => {...}
380380
If TypeScript error can't be mitigated, as last resort use `@ts-expect-error` to suppress it <Rule href="https://typescript-eslint.io/rules/ban-ts-comment" />. If at any future point suppressed line becomes error-free, TypeScript compiler will indicate it.
381381
`@ts-ignore` is not allowed, where `@ts-expect-error` must be used with provided description <Rule href="https://typescript-eslint.io/rules/ban-ts-comment/#allow-with-description" />.
382382

383+
```ts
384+
// .eslintrc.js
385+
'@typescript-eslint/ban-ts-comment': [
386+
'error',
387+
{
388+
'ts-expect-error': 'allow-with-description'
389+
},
390+
],
391+
```
392+
383393
```ts
384394
// ❌ Avoid @ts-ignore
385395
// @ts-ignore

0 commit comments

Comments
 (0)