-
Notifications
You must be signed in to change notification settings - Fork 5
Vmo 3640 dates in expr ctx #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,14 +144,22 @@ export function createEvalContextFrom(context: IContext): object { | |
| prompt = cursor.promptConfig | ||
| } | ||
|
|
||
| const today = new Date() | ||
| const tomorrow = new Date() | ||
| const yesterday = new Date() | ||
|
|
||
| tomorrow.setDate(today.getDate() + 1) | ||
| tomorrow.setHours(0, 0, 0, 0) | ||
| yesterday.setDate(today.getDate() - 1) | ||
| yesterday.setHours(0, 0, 0, 0) | ||
| // now is todays full date + time | ||
| const now = new Date() | ||
|
|
||
| // today is just today's day, at midnight | ||
| const today = new Date(now) | ||
| today.setHours(0, 0, 0, 0); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: ESLint Extra semicolon. (semi)
|
||
|
|
||
| // tomorrow and yesterday also midnight | ||
| const tomorrow = new Date(now) | ||
| const yesterday = new Date(now) | ||
|
|
||
| tomorrow.setDate(now.getDate() + 1) | ||
| tomorrow.setHours(0, 0, 0, 0); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: ESLint Delete `;` (prettier/prettier)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: ESLint Extra semicolon. (semi)
|
||
|
|
||
| yesterday.setDate(now.getDate() - 1) | ||
| yesterday.setHours(0, 0, 0, 0); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: ESLint Delete `;` (prettier/prettier)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reporter: ESLint Extra semicolon. (semi)
|
||
|
|
||
| return { | ||
| contact: createEvalContactFrom(contact), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reporter: ESLint
Rule: eslint.rules.prettier/prettier
Severity: ERROR
File: src/flow-spec/IBlock.ts L152
Delete `;` (prettier/prettier)