Skip to content

Commit

Permalink
feat: ignore import unresolved for js-ext-core/ethers-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TanHoang committed Dec 24, 2024
1 parent e53a984 commit b6eee68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
26 changes: 17 additions & 9 deletions ethers-ext/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,25 @@ module.exports = {
"@typescript-eslint/ban-ts-comment": "off",

// imports
"import/order": ["warn", {
"alphabetize": { "order": "asc", "caseInsensitive": true },
"pathGroups": [
{ "pattern": "@kaiachain/**", "group": "parent", "position": "after" },
],
"newlines-between": "always",
"pathGroupsExcludedImportTypes": ["@kaiachain/**"],
}],
"import/order": [
"warn",
{
alphabetize: { order: "asc", caseInsensitive: true },
pathGroups: [
{ pattern: "@kaiachain/**", group: "parent", position: "after" },
],
"newlines-between": "always",
pathGroupsExcludedImportTypes: ["@kaiachain/**"],
},
],
"import/no-unresolved": [
"error", // eslint-plugin-import cannot resolve subpaths https://github.com/firebase/firebase-admin-node/discussions/1359
{ ignore: ["^@kaiachain/js-ext-core/util$"] }
{
ignore: [
"^@kaiachain/js-ext-core/util$",
"^@kaiachain/js-ext-core/ethers-v6$",
],
},
],

// formatting
Expand Down
1 change: 0 additions & 1 deletion ethers-ext/src/v6/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ export {
parseKaia,
parseKaiaUnits,
parseUnits,
// eslint-disable-next-line import/no-unresolved
} from "@kaiachain/js-ext-core/ethers-v6";

0 comments on commit b6eee68

Please sign in to comment.