From 41f05541ed0661bd46f5e8c44f318ffb8200948a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 30 May 2022 08:43:56 -0600 Subject: [PATCH] Disable no-non-null assertions lint rule (#22348) This *allows* us to use `variable!.prop` to ensure `variable` is not null/undefined. --- .eslintrc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 3e1892b2d6..b6f2693ab5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -30,6 +30,8 @@ module.exports = { // We disable this while we're transitioning "@typescript-eslint/no-explicit-any": "off", + // We're okay with assertion errors when we ask for them + "@typescript-eslint/no-non-null-assertion": "off", // Ban matrix-js-sdk/src imports in favour of matrix-js-sdk/src/matrix imports to prevent unleashing hell. "no-restricted-imports": ["error", {