Skip to content

Commit

Permalink
fix(no-void): allowAsStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhut authored and mightyiam committed Feb 17, 2021
1 parent 56de111 commit 8ab083e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }]
}
}
]
Expand Down

0 comments on commit 8ab083e

Please sign in to comment.