fix: type aware linting when trigged by tsconfig.eslint.json
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
overrides: basic.overrides.concat(
|
||||
!fs.existsSync(join(process.cwd(), 'tsconfig.json'))
|
||||
!fs.existsSync(join(process.cwd(), 'tsconfig.eslint.json'))
|
||||
? []
|
||||
: [{
|
||||
parserOptions: {
|
||||
@@ -31,7 +31,7 @@ module.exports = {
|
||||
'@typescript-eslint/no-implied-eval': 'error',
|
||||
'dot-notation': 'off',
|
||||
'@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],
|
||||
'no-void': ['error', { 'allowAsStatement': true }],
|
||||
'no-void': ['error', { allowAsStatement: true }],
|
||||
'@typescript-eslint/no-floating-promises': 'error',
|
||||
'@typescript-eslint/no-misused-promises': 'error',
|
||||
},
|
||||
|
Reference in New Issue
Block a user