Skip to content

Commit e90c177

Browse files
authored
Allowed accessing named exports via default import + dynamic imports from URLs (import-js/eslint-plugin-import#3118)
1 parent 8581d3c commit e90c177

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export default [
2626
'no-empty': 'off', // allow empty blocks
2727
'no-inner-declarations': 'off', // allow function declarations anywhere
2828
'no-useless-escape': 'off', // allow all escape chars cause ESLint sucks at detecting truly useless ones
29-
'no-unused-vars': ['error', { 'caughtErrors': 'none' }] // allow unused named args in catch blocks
29+
'no-unused-vars': ['error', { 'caughtErrors': 'none' }], // allow unused named args in catch blocks
30+
'import/no-named-as-default-member': 'off', // allow accessing named exports via default import
31+
'import/no-unresolved': ['error', { ignore: ['^(?:https?://)'] }] // allow dynamic imports from URLs...
32+
// ...maintainer refuses to support (https://github.com/import-js/eslint-plugin-import/issues/3118)
3033
}
3134
},
3235
{

0 commit comments

Comments
 (0)