mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-03 19:40:08 -05:00
update tslint config with noUnusedLocals and clean up code accordingly
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"inlineSources": false,
|
||||
"isolatedModules": true,
|
||||
"moduleResolution": "node",
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"preserveWatchOutput": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": true
|
||||
|
||||
Reference in New Issue
Block a user