You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer math min max should not be reported for luxon objects because Math.min/max returns timestamp instead of original object which causes errors if not corrected and also there is loss of other information if object is recreated from Math result (like timezone)
prefer-math-min-max
letstart=DateTime.local().startOf('day').minus({days: 5});letend=DateTime.local().startOf('day').minus({days: 1});letmin=Math.min(start,end);// min is now a timestamp and not an object.
The text was updated successfully, but these errors were encountered:
Prefer math min max should not be reported for luxon objects because Math.min/max returns timestamp instead of original object which causes errors if not corrected and also there is loss of other information if object is recreated from Math result (like timezone)
prefer-math-min-max
The text was updated successfully, but these errors were encountered: