From 8ab083e311702be22db4cc7c604e55dcccd95f32 Mon Sep 17 00:00:00 2001 From: George Cheng Date: Wed, 27 Jan 2021 02:44:15 +0000 Subject: [PATCH] fix(no-void): allowAsStatement --- src/index.test.ts | 1 + src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.test.ts b/src/index.test.ts index 6336f036..6d41b8b8 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -51,6 +51,7 @@ test('export', (t): void => { 'no-use-before-define': 'off', 'no-unused-expressions': 'off', 'no-useless-constructor': 'off', + 'no-void': ['error', { allowAsStatement: true }], quotes: 'off', semi: 'off', 'space-before-function-paren': 'off', diff --git a/src/index.ts b/src/index.ts index 7912657c..6dc41097 100644 --- a/src/index.ts +++ b/src/index.ts @@ -135,7 +135,8 @@ const config: Linter.Config = { allowAny: false }], '@typescript-eslint/triple-slash-reference': ['error', { lib: 'never', path: 'never', types: 'never' }], - '@typescript-eslint/type-annotation-spacing': 'error' + '@typescript-eslint/type-annotation-spacing': 'error', + 'no-void': ['error', { allowAsStatement: true }] } } ]