From 084dc0be08555891cad4c2bb984822a62ec5ec9f Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 20 Jan 2023 18:10:47 +1100 Subject: Add ESLint (#941) * Add eslint, switch to lint-staged for precommit * Fix all ESLint errors * Update GH workflow to check prettier and eslint --- scripts/util/getRouteDescriptions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/util/getRouteDescriptions.js b/scripts/util/getRouteDescriptions.js index 274c0d14..649cafaf 100644 --- a/scripts/util/getRouteDescriptions.js +++ b/scripts/util/getRouteDescriptions.js @@ -32,7 +32,7 @@ function registerPath(file, method, prefix, path, ...args) { const sourceFile = file.replace("/dist/", "/src/").replace(".js", ".ts"); const opts = args.find((x) => typeof x === "object"); if (opts) { - routes.set(urlPath + "|" + method, opts); // @ts-ignore + routes.set(urlPath + "|" + method, opts); opts.file = sourceFile; // console.log(method, urlPath, opts); } else { @@ -46,7 +46,6 @@ function routeOptions(opts) { return opts; } -// @ts-ignore RouteUtility.route = routeOptions; express.Router = (opts) => { -- cgit 1.4.1