Revert "Turn off formatOnSave and remove eslint.run & fix CalendarManager lint (#2357)"

This reverts commit 279b4d57f1.
pull/2392/head
Joe Au-Yeung 2022-04-06 16:34:45 -04:00
parent 260c3ca3a7
commit c9cb003e61
3 changed files with 13 additions and 9 deletions

2
.eslintignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
packages/prisma/zod

View File

@ -1,9 +1,11 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": false,
"editor.formatOnSave": true,
// Auto-fix issues with ESLint when you save code changes
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.run": "onSave",
"typescript.preferences.importModuleSpecifier": "non-relative",
"spellright.language": ["en"],
"spellright.documentTypes": ["markdown"]

View File

@ -109,10 +109,10 @@ export const createEvent = async (credential: Credential, calEvent: CalendarEven
const creationResult = calendar
? await calendar.createEvent(calEvent).catch((e) => {
log.error("createEvent failed", e, calEvent);
success = false;
return undefined;
})
log.error("createEvent failed", e, calEvent);
success = false;
return undefined;
})
: undefined;
return {
@ -136,10 +136,10 @@ export const updateEvent = async (
const updatedResult =
calendar && bookingRefUid
? await calendar.updateEvent(bookingRefUid, calEvent).catch((e) => {
log.error("updateEvent failed", e, calEvent);
success = false;
return undefined;
})
log.error("updateEvent failed", e, calEvent);
success = false;
return undefined;
})
: undefined;
return {