Skip to content

Commit

Permalink
Disable import/no-named-as-default
Browse files Browse the repository at this point in the history
  • Loading branch information
hkamran80 committed Oct 2, 2024
1 parent 02861b7 commit 0d12fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default [
ecmaVersion: "latest",
sourceType: "module",
},
plugins: { import: importPlugin },
rules: {
"no-alert": "error",
"no-await-in-loop": "error",
Expand Down Expand Up @@ -74,6 +75,10 @@ export default [
],
},
],

// Must be turned off because of the `context.getAncestors` error seen in
// import-js/eslint-plugin-import#2995 and import-js/eslint-plugin-import#2556#issuecomment-2121423498
"import/no-named-as-default": "off",
},
},
];
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hkamran/eslint-config",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"license": "AGPL-3.0-or-later",
"description": "My personal ESLint configuration",
"main": "index.js",
Expand Down

0 comments on commit 0d12fc4

Please sign in to comment.