Skip to content

Commit

Permalink
Disable no-non-null assertions lint rule (#22348)
Browse files Browse the repository at this point in the history
This *allows* us to use `variable!.prop` to ensure `variable` is not null/undefined.
  • Loading branch information
turt2live authored May 30, 2022
1 parent 4a91c17 commit 41f0554
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit 41f0554

Please sign in to comment.