Skip to content

Commit 11498b2

Browse files
committed
Disable @typescript-eslint/strict-boolean-expressions rule
1 parent c0c2db9 commit 11498b2

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

index.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,17 @@ module.exports = {
275275
'error',
276276
'always'
277277
],
278-
'@typescript-eslint/strict-boolean-expressions': [
279-
'error',
280-
{
281-
allowNullable: true
282-
}
283-
],
278+
279+
// TODO: Reconsider enabling it again in 2021.
280+
// Disabled for now as it's too strict.
281+
// Relevant discussion: https://github.com/sindresorhus/refined-github/pull/2521#discussion_r343013852
282+
// '@typescript-eslint/strict-boolean-expressions': [
283+
// 'error',
284+
// {
285+
// allowNullable: true
286+
// }
287+
// ],
288+
284289
'@typescript-eslint/triple-slash-reference': [
285290
'error',
286291
{

0 commit comments

Comments
 (0)