fix: allow void as statement in ts file (#142)
This commit is contained in:
@@ -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: {
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user