From 150c5308507e325b1ad9cc778c30a1638493f3f1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 30 May 2022 00:21:55 -0600 Subject: [PATCH] Disable no-non-null assertions lint rule (#8699) 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 f3e38f94c3..bcf20ab5a6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -115,6 +115,8 @@ module.exports = { "@typescript-eslint/no-explicit-any": "off", // We'd rather not do this but we do "@typescript-eslint/ban-ts-comment": "off", + // We're okay with assertion errors when we ask for them + "@typescript-eslint/no-non-null-assertion": "off", }, }, // temporary override for offending icon require files