Skip to content

Commit 1f70ed1

Browse files
committed
chore: replace prefer-ts-expect-error with ban-ts-comment
1 parent bd04053 commit 1f70ed1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

eslint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ export default defineConfig(
6161
],
6262
// This rule enforces the preference for using '@ts-expect-error' comments in TypeScript
6363
// code to indicate intentional type errors, improving code clarity and maintainability.
64-
'@typescript-eslint/prefer-ts-expect-error': 'error',
64+
'@typescript-eslint/ban-ts-comment': [
65+
'error',
66+
{ minimumDescriptionLength: 0 },
67+
],
6568
// Enforce the use of 'import type' for importing types
6669
'@typescript-eslint/consistent-type-imports': [
6770
'error',

packages/vue/jsx-runtime/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/prefer-ts-expect-error */
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
22
import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
33

44
/**

packages/vue/jsx.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/prefer-ts-expect-error */
1+
/* eslint-disable @typescript-eslint/ban-ts-comment */
22
// global JSX namespace registration
33
// somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
44
import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'

0 commit comments

Comments
 (0)