diff --git a/src/Tgstation.Server.Host/ClientApp/src/registerServiceWorker.ts b/src/Tgstation.Server.Host/ClientApp/src/registerServiceWorker.ts index 28c89f7b68..e10d7c6155 100644 --- a/src/Tgstation.Server.Host/ClientApp/src/registerServiceWorker.ts +++ b/src/Tgstation.Server.Host/ClientApp/src/registerServiceWorker.ts @@ -1,4 +1,5 @@ // tslint:disable:no-console +// tslint:disable:curly // In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives diff --git a/src/Tgstation.Server.Host/ClientApp/tsconfig.prod.json b/src/Tgstation.Server.Host/ClientApp/tsconfig.prod.json new file mode 100644 index 0000000000..fc8520e737 --- /dev/null +++ b/src/Tgstation.Server.Host/ClientApp/tsconfig.prod.json @@ -0,0 +1,3 @@ +{ + "extends": "./tsconfig.json" +} diff --git a/src/Tgstation.Server.Host/ClientApp/tslint.json b/src/Tgstation.Server.Host/ClientApp/tslint.json index bfdc862cf4..5ad33a8e73 100644 --- a/src/Tgstation.Server.Host/ClientApp/tslint.json +++ b/src/Tgstation.Server.Host/ClientApp/tslint.json @@ -1,10 +1,14 @@ { - "extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"], + "extends": [ "tslint:recommended", "tslint-react", "tslint-config-prettier" ], "linterOptions": { "exclude": [ "config/**/*.js", "node_modules/**/*.ts", "coverage/lcov-report/*.js" ] + }, + "rules": { + "curly": [ true, "as-needed" ], + "semicolon": [ true, "always" ] } } diff --git a/src/Tgstation.Server.Host/Controllers/HomeController.cs b/src/Tgstation.Server.Host/Controllers/HomeController.cs index 56d7a59e5a..755ad17ba0 100644 --- a/src/Tgstation.Server.Host/Controllers/HomeController.cs +++ b/src/Tgstation.Server.Host/Controllers/HomeController.cs @@ -85,7 +85,7 @@ namespace Tgstation.Server.Host.Controllers [TgsAuthorize] [AllowAnonymous] [HttpGet] - public IActionResult Home(CancellationToken cancellationToken) + public IActionResult Home() { if (AuthenticationContext != null) return Json(new Api.Models.ServerInformation