Disable no-non-null assertions lint rule (#22348)

This *allows* us to use `variable!.prop` to ensure `variable` is not null/undefined.
pull/22414/head
Travis Ralston 2022-05-30 08:43:56 -06:00 committed by GitHub
parent 4a91c172b2
commit 41f05541ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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", {