From 7056e04c020e3eea853e092618d5da3b7fd24370 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 1 May 2024 09:13:41 +0530 Subject: [PATCH] Fix lint for web Copy overrides from desktop --- web/packages/build-config/eslintrc-base.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/packages/build-config/eslintrc-base.js b/web/packages/build-config/eslintrc-base.js index b302be36d..3e65638c1 100644 --- a/web/packages/build-config/eslintrc-base.js +++ b/web/packages/build-config/eslintrc-base.js @@ -10,4 +10,20 @@ module.exports = { parserOptions: { project: true }, parser: "@typescript-eslint/parser", ignorePatterns: [".eslintrc.js"], + rules: { + /* Allow numbers to be used in template literals */ + "@typescript-eslint/restrict-template-expressions": [ + "error", + { + allowNumber: true, + }, + ], + /* Allow void expressions as the entire body of an arrow function */ + "@typescript-eslint/no-confusing-void-expression": [ + "error", + { + ignoreArrowShorthand: true, + }, + ], + }, };