eslint-config icon indicating copy to clipboard operation
eslint-config copied to clipboard

fix(typescript): allow description for `ts-expect-error` in `ban-ts-c…

Open kevinmarrec opened this issue 8 months ago • 1 comments

Description

https://github.com/antfu/eslint-config/blob/8f36c5bab73ddb855db8f4a1cd96246817f6aa26/src/configs/typescript.ts#L140

ts/prefer-ts-expect-error rule is enabled and enforce usage of @ts-expect-error

https://github.com/antfu/eslint-config/blob/8f36c5bab73ddb855db8f4a1cd96246817f6aa26/src/configs/typescript.ts#L122

Therefore ts/ban-ts-comment rule should allow description for ts-expect-error and not ts-ignore to be consistent

kevinmarrec avatar Jun 26 '24 15:06 kevinmarrec