File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import importX from 'eslint-plugin-import-x'
22import tseslint from 'typescript-eslint'
3+ import { defineConfig } from 'eslint/config'
34import vitest from '@vitest/eslint-plugin'
45import { builtinModules } from 'node:module'
56
@@ -12,7 +13,7 @@ const banConstEnum = {
1213 'Please use non-const enums. This project automatically inlines enums.' ,
1314}
1415
15- export default tseslint . config (
16+ export default defineConfig (
1617 {
1718 files : [ '**/*.js' , '**/*.ts' , '**/*.tsx' ] ,
1819 extends : [ tseslint . configs . base ] ,
@@ -60,7 +61,10 @@ export default tseslint.config(
6061 ] ,
6162 // This rule enforces the preference for using '@ts-expect-error' comments in TypeScript
6263 // code to indicate intentional type errors, improving code clarity and maintainability.
63- '@typescript-eslint/prefer-ts-expect-error' : 'error' ,
64+ '@typescript-eslint/ban-ts-comment' : [
65+ 'error' ,
66+ { minimumDescriptionLength : 0 } ,
67+ ] ,
6468 // Enforce the use of 'import type' for importing types
6569 '@typescript-eslint/consistent-type-imports' : [
6670 'error' ,
Original file line number Diff line number Diff line change 1- /* eslint-disable @typescript-eslint/prefer -ts-expect-error */
1+ /* eslint-disable @typescript-eslint/ban -ts-comment */
22import type { NativeElements , ReservedProps , VNode } from '@vue/runtime-dom'
33
44/**
Original file line number Diff line number Diff line change 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
44import type { NativeElements , ReservedProps , VNode } from '@vue/runtime-dom'
You can’t perform that action at this time.
0 commit comments