Skip to content

Commit e3c511b

Browse files
committed
Disable the import/default rule for TypeScript files
1 parent 7b8dc70 commit e3c511b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/options-manager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ const buildXOConfig = options => config => {
316316

317317
// Disabled because of https://github.com/benmosher/eslint-plugin-import/issues/1590
318318
config.rules['import/export'] = 'off';
319+
320+
// Does not work when the TS definition exports a default const.
321+
config.rules['import/default'] = 'off';
319322
}
320323

321324
if (options.rules) {

0 commit comments

Comments
 (0)