Open Einere opened 2 years ago
Describe the bug
When i using dayjs in React with TypeScript, some errors occur.
any
import dayjs from "dayjs"; function getTime(dateTimeStr: string): string { return dayjs(dateTimeStr).unix().toString(); }
Expected behavior There is no lint errors.
Information
.eslintrc
Lint errors like this are still popping up for pretty much all the no-unsafe rules. Are there any updates on this issue?
no-unsafe
Describe the bug
When i using dayjs in React with TypeScript, some errors occur.
any
typed value.(@typescript-eslint/no-unsafe-call)any
value.(@typescript-eslint/no-unsafe-member-access)any
value.(@typescript-eslint/no-unsafe-member-access)Expected behavior There is no lint errors.
Information
.eslintrc
, ...)