Skip to content

Commit

Permalink
fix: allow void as statement in ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Dec 15, 2022
1 parent 559f5f4 commit e86954a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/basic/index.js
Expand Up @@ -147,6 +147,12 @@ module.exports = {
'@typescript-eslint/no-var-requires': 'off',
},
},
{
files: ['*.ts', '*.tsx', '*.mts', '*.cts'],
rules: {
'no-void': ['error', { allowAsStatement: true }],
},
},
{
files: ['scripts/**/*.*', 'cli.*'],
rules: {
Expand Down
1 change: 0 additions & 1 deletion packages/typescript/index.js
Expand Up @@ -34,7 +34,6 @@ module.exports = {
'@typescript-eslint/no-implied-eval': 'error',
'dot-notation': 'off',
'@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
'no-void': ['error', { allowAsStatement: true }],
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/await-thenable': 'error',
Expand Down

0 comments on commit e86954a

Please sign in to comment.