eslint: Fix unicorn/prefer-date-now.

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v24.0.0/docs/rules/prefer-date-now.md

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-12-22 02:54:49 -08:00
committed by Tim Abbott
parent 2f80415756
commit dd8e14d3e6
10 changed files with 13 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ const ls = {
return {
data,
__valid: true,
expires: new Date().getTime() + expires,
expires: Date.now() + expires,
};
},