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

Fix incorrect no-undef errors when exporting default interfaces #51

Merged
merged 1 commit into from
Nov 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
},
},
],
};