From aa26058702611d4fb9e5f82e1a87d03496b40a88 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 3 Jun 2020 20:20:54 +0800 Subject: [PATCH] Disable `@typescript-eslint/no-extra-non-null-assertion` rule --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b3973c6..343e560 100644 --- a/index.js +++ b/index.js @@ -267,7 +267,8 @@ module.exports = { // } // ], - '@typescript-eslint/no-extra-non-null-assertion': 'error', + // TODO: Try to enable this again in 2021. It's currently a bit buggy, most likely caused by TypeScript itself. + // '@typescript-eslint/no-extra-non-null-assertion': 'error', // Disabled because it's buggy. It transforms `...(personalToken ? {Authorization: `token ${personalToken}`} : {})` into `...personalToken ? {Authorization: `token ${personalToken}`} : {}` which is not valid. // https://github.com/typescript-eslint/typescript-eslint/search?q=%22no-extra-parens%22&state=open&type=Issues