Turn off formatOnSave and remove eslint.run & fix CalendarManager lint (#2357)
parent
966a5f30ec
commit
279b4d57f1
|
@ -1,2 +0,0 @@
|
||||||
node_modules
|
|
||||||
packages/prisma/zod
|
|
|
@ -1,11 +1,9 @@
|
||||||
{
|
{
|
||||||
"typescript.tsdk": "node_modules/typescript/lib",
|
"typescript.tsdk": "node_modules/typescript/lib",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": false,
|
||||||
// Auto-fix issues with ESLint when you save code changes
|
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.eslint": true
|
"source.fixAll.eslint": true
|
||||||
},
|
},
|
||||||
"eslint.run": "onSave",
|
|
||||||
"typescript.preferences.importModuleSpecifier": "non-relative",
|
"typescript.preferences.importModuleSpecifier": "non-relative",
|
||||||
"spellright.language": ["en"],
|
"spellright.language": ["en"],
|
||||||
"spellright.documentTypes": ["markdown"]
|
"spellright.documentTypes": ["markdown"]
|
||||||
|
|
|
@ -109,10 +109,10 @@ export const createEvent = async (credential: Credential, calEvent: CalendarEven
|
||||||
|
|
||||||
const creationResult = calendar
|
const creationResult = calendar
|
||||||
? await calendar.createEvent(calEvent).catch((e) => {
|
? await calendar.createEvent(calEvent).catch((e) => {
|
||||||
log.error("createEvent failed", e, calEvent);
|
log.error("createEvent failed", e, calEvent);
|
||||||
success = false;
|
success = false;
|
||||||
return undefined;
|
return undefined;
|
||||||
})
|
})
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -136,10 +136,10 @@ export const updateEvent = async (
|
||||||
const updatedResult =
|
const updatedResult =
|
||||||
calendar && bookingRefUid
|
calendar && bookingRefUid
|
||||||
? await calendar.updateEvent(bookingRefUid, calEvent).catch((e) => {
|
? await calendar.updateEvent(bookingRefUid, calEvent).catch((e) => {
|
||||||
log.error("updateEvent failed", e, calEvent);
|
log.error("updateEvent failed", e, calEvent);
|
||||||
success = false;
|
success = false;
|
||||||
return undefined;
|
return undefined;
|
||||||
})
|
})
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue