Date.parse
does not behave consistently across platforms
There is already an existing plugin for this https://github.com/amzn/eslint-plugin-no-date-parsing
But it requires typescrpt parser and does not support eslint 9
new Date('2024-08-16');
Date.parse('2024-08-16')
import { parseISO } from 'date-fns';
// prefer `date-fns` or other Date library
const date = parseISO('2024-08-16');
no-date-parsing
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too