Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
fix: Fix incorrect no-undef errors when exporting default interfaces (
Browse files Browse the repository at this point in the history
  • Loading branch information
iamturns authored Nov 25, 2019
1 parent 1d01455 commit 427ea70
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,15 @@ module.exports = {
},
],
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
// Disable `no-undef` rule within TypeScript files because it incorrectly errors when exporting default interfaces
// https://github.com/iamturns/eslint-config-airbnb-typescript/issues/50
// This will be caught by TypeScript compiler if `strictNullChecks` (or `strict`) is enabled
'no-undef': 'off',
},
},
],
};

0 comments on commit 427ea70

Please sign in to comment.