eslint-config
eslint-config copied to clipboard
fix(typescript): allow description for `ts-expect-error` in `ban-ts-c…
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