frontend linting

This commit is contained in:
realaravinth
2021-10-08 15:24:29 +05:30
parent f7afc72d81
commit 53720ff740
91 changed files with 2158 additions and 1677 deletions

View File

@@ -21,12 +21,12 @@
* So when using class-names, pass in ".whatever-classname"
* and for ID, "#id".
* */
const getFormUrl = (querySelector?: string | HTMLFormElement) => {
const getFormUrl = (querySelector?: string | HTMLFormElement): string => {
let form;
if (querySelector === undefined) {
form = <HTMLFormElement>document.querySelector('form');
form = <HTMLFormElement>document.querySelector("form");
}
if (typeof querySelector == 'string' || querySelector instanceof String) {
if (typeof querySelector == "string" || querySelector instanceof String) {
form = <HTMLFormElement>document.querySelector(querySelector.toString());
}
if (querySelector instanceof HTMLFormElement) {