Skip to content

Commit 5ef89e1

Browse files
committed
chore: loose ban-ts-comment
1 parent 3fc1431 commit 5ef89e1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/.vitepress/theme/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ if (typeof window !== 'undefined' && typeof require === 'undefined') {
1111
import type { Theme } from 'vitepress'
1212
// @ts-expect-error -- Cannot change `module` option
1313
import DefaultTheme from 'vitepress/theme'
14+
// @ts-expect-error -- ignore
1415
import Layout from './Layout.vue'
16+
// @ts-expect-error -- ignore
1517
import ESLintCodeBlock from './components/eslint-code-block.vue'
18+
// @ts-expect-error -- ignore
1619
import RulesTable from './components/rules-table.vue'
1720

1821
const theme: Theme = {

eslint.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,13 @@ export default typegen([
285285
'@typescript-eslint/no-empty-object-type': 'off',
286286
'@typescript-eslint/no-namespace': 'off',
287287
'@typescript-eslint/triple-slash-reference': 'off',
288-
'@typescript-eslint/unified-signatures': 'off'
288+
'@typescript-eslint/unified-signatures': 'off',
289+
'@typescript-eslint/ban-ts-comment': [
290+
'error',
291+
{
292+
minimumDescriptionLength: 3
293+
}
294+
]
289295
}
290296
},
291297

0 commit comments

Comments
 (0)