Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Disable no-non-null assertions lint rule (#8699)
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 2649c6f commit 150c530
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 @@ -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
Expand Down

0 comments on commit 150c530

Please sign in to comment.