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

Commit 150c530

Browse files
authored
Disable no-non-null assertions lint rule (#8699)
This *allows* us to use `variable!.prop` to ensure `variable` is not null/undefined.
1 parent 2649c6f commit 150c530

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ module.exports = {
115115
"@typescript-eslint/no-explicit-any": "off",
116116
// We'd rather not do this but we do
117117
"@typescript-eslint/ban-ts-comment": "off",
118+
// We're okay with assertion errors when we ask for them
119+
"@typescript-eslint/no-non-null-assertion": "off",
118120
},
119121
},
120122
// temporary override for offending icon require files

0 commit comments

Comments
 (0)