Skip to content

Commit 0d12fc4

Browse files
committed
Disable import/no-named-as-default
See import-js/eslint-plugin-import#2995 and import-js/eslint-plugin-import#2556#issuecomment-2121423498
1 parent 02861b7 commit 0d12fc4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/eslint-config/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default [
1313
ecmaVersion: "latest",
1414
sourceType: "module",
1515
},
16+
plugins: { import: importPlugin },
1617
rules: {
1718
"no-alert": "error",
1819
"no-await-in-loop": "error",
@@ -74,6 +75,10 @@ export default [
7475
],
7576
},
7677
],
78+
79+
// Must be turned off because of the `context.getAncestors` error seen in
80+
// import-js/eslint-plugin-import#2995 and import-js/eslint-plugin-import#2556#issuecomment-2121423498
81+
"import/no-named-as-default": "off",
7782
},
7883
},
7984
];

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hkamran/eslint-config",
3-
"version": "2.0.0-rc.1",
3+
"version": "2.0.0-rc.2",
44
"license": "AGPL-3.0-or-later",
55
"description": "My personal ESLint configuration",
66
"main": "index.js",

0 commit comments

Comments
 (0)