Skip to content

Commit

Permalink
Disable @typescript-eslint/no-extra-non-null-assertion rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 3, 2020
1 parent f13cf8b commit aa26058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -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
Expand Down

0 comments on commit aa26058

Please sign in to comment.