From 844c0d8b967c805a1480d5663dc649c968b226f6 Mon Sep 17 00:00:00 2001 From: Kane W Date: Fri, 9 Jul 2021 13:29:52 +0700 Subject: [PATCH] Add `@typescript-eslint/ban-ts-comment` rule https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/ban-ts-comment.md xojs/xo#571 --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index c4a38b9..08ee20c 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,13 @@ module.exports = { } ], '@typescript-eslint/await-thenable': 'error', + '@typescript-eslint/ban-ts-comment': [ + 'error', + { + 'ts-expect-error': 'allow-with-description', + minimumDescriptionLength: 4 + } + ], '@typescript-eslint/ban-tslint-comment': 'error', '@typescript-eslint/ban-types': [ 'error',