Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 427ea70

Browse files
authored
fix: Fix incorrect no-undef errors when exporting default interfaces (#51)
1 parent 1d01455 commit 427ea70

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/shared.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,15 @@ module.exports = {
117117
},
118118
],
119119
},
120+
overrides: [
121+
{
122+
files: ['*.ts', '*.tsx'],
123+
rules: {
124+
// Disable `no-undef` rule within TypeScript files because it incorrectly errors when exporting default interfaces
125+
// https://github.com/iamturns/eslint-config-airbnb-typescript/issues/50
126+
// This will be caught by TypeScript compiler if `strictNullChecks` (or `strict`) is enabled
127+
'no-undef': 'off',
128+
},
129+
},
130+
],
120131
};

0 commit comments

Comments
 (0)