diff --git a/frontends/web/.eslintrc.json b/frontends/web/.eslintrc.json index 1fdeb8e2ad..881e982850 100644 --- a/frontends/web/.eslintrc.json +++ b/frontends/web/.eslintrc.json @@ -57,7 +57,17 @@ "overrides": [ { "files": ["**/*.ts?(x)"], - "rules": { } + "rules": { + "@typescript-eslint/restrict-template-expressions": ["error", { + "allowNumber": true, + "allowAny": false, + "allowBoolean": false, + "allowNullish": false + }] + }, + "parserOptions": { + "project": ["./tsconfig.json"] + } }, { "files": ["**/*.test.ts?(x)"], diff --git a/frontends/web/src/api/subscribe.ts b/frontends/web/src/api/subscribe.ts index 59122cf557..602a893c23 100644 --- a/frontends/web/src/api/subscribe.ts +++ b/frontends/web/src/api/subscribe.ts @@ -42,7 +42,7 @@ export const subscribeEndpoint = ( .catch(console.error); break; default: - throw new Error(`Event: ${event} not supported`); + throw new Error(`Event: ${JSON.stringify(event)} not supported`); } }); }; diff --git a/frontends/web/src/components/forms/select.tsx b/frontends/web/src/components/forms/select.tsx index 6e7e22269f..43ec5d09e6 100644 --- a/frontends/web/src/components/forms/select.tsx +++ b/frontends/web/src/components/forms/select.tsx @@ -41,7 +41,7 @@ export const Select = ({