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

pull/2359/head
Alex van Andel 2022-04-03 00:43:28 +01:00 committed by GitHub
parent 966a5f30ec
commit 279b4d57f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 13 deletions

View File

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

View File

@ -1,11 +1,9 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
// Auto-fix issues with ESLint when you save code changes
"editor.formatOnSave": false,
"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 {