update tslint config with noUnusedLocals and clean up code accordingly

This commit is contained in:
Matthias Nannt
2023-01-30 14:40:12 +01:00
parent bfe4ad0f87
commit d2b10d6502
27 changed files with 52 additions and 304 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ function close() {
containerElement.removeAttribute("data-success");
}
function resetForm(e: Event) {
function resetForm() {
document.getElementById("formbricks__type-switch")!.innerHTML = "";
containerElement.removeAttribute("data-feedback-type");
}
+3 -6
View File
@@ -214,12 +214,9 @@ async function sendWarmupRequest() {
if (!config.formId) {
throw new Error("Missing formId");
}
const response = await fetch(
`${stripLastBackslash(config.formbricksUrl)}/api/capture/forms/${config.formId}/submissions`,
{
method: "OPTIONS",
}
);
await fetch(`${stripLastBackslash(config.formbricksUrl)}/api/capture/forms/${config.formId}/submissions`, {
method: "OPTIONS",
});
return;
}
+2 -2
View File
@@ -10,8 +10,8 @@
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node",
"noUnusedLocals": false,
"noUnusedParameters": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true