Skip to content

Commit

Permalink
Disable the import/default rule for TypeScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 20, 2021
1 parent 7b8dc70 commit e3c511b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/options-manager.js
Expand Up @@ -316,6 +316,9 @@ const buildXOConfig = options => config => {

// Disabled because of https://github.com/benmosher/eslint-plugin-import/issues/1590
config.rules['import/export'] = 'off';

// Does not work when the TS definition exports a default const.
config.rules['import/default'] = 'off';
}

if (options.rules) {
Expand Down

0 comments on commit e3c511b

Please sign in to comment.