Geoff Swift
Geoff Swift
You could consider to autofix for a `YYYY-MM-DD` string like so... ```javascript // Bad new Date('2000-12-25'); ``` ```javascript // Good Date.UTC(2000, 11, 25); ``` Rules of the game here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format
`Temporal` is a good idea. Part of the point I was making is string literals can at least be handled, without worrying about type infererences. I think that's still sound...
Happy to confirm this is now fixed in [email protected]. Thanks.
> > [email protected] > > Can you clarify, what exactly you are using? The version number doesn't make sense to me (PMD is at 7.12.0, vscode-apex-pmd is at 0.8.0, so...
If the rule only supported literals that'd be good. Ideal is if we can have it detect a reference of a literal via a `const`. I can fix up all...
Good point about `async ()=> value` I've even seen people write this: ```javascript example.mockImplementation(() => Promise.resolve(1)); ``` Instead of just: ```javascript example.mockResolvedValue(1); ```
Bump. Please fix.
Bump. Please fix
Bump. Please fix
Bump. Please fix