diff --git a/packages/juno/.eslintrc.json b/packages/juno/.eslintrc.json index 04afd5d7b..b61122721 100644 --- a/packages/juno/.eslintrc.json +++ b/packages/juno/.eslintrc.json @@ -25,6 +25,7 @@ "jest": true }, "rules": { + "@typescript-eslint/no-var-requires": 0, // "react-hooks/rules-of-hooks": 2, // "react-hooks/exhaustive-deps": 1, "simple-import-sort/imports": 2, diff --git a/packages/juno/scripts/build.js b/packages/juno/scripts/build.js index f8c050b61..723f2131b 100644 --- a/packages/juno/scripts/build.js +++ b/packages/juno/scripts/build.js @@ -1,6 +1,6 @@ -import { getAssetLists } from '@chain-registry/utils'; -import { assets, chains, ibc } from 'chain-registry'; -import { writeFileSync } from 'fs'; +const { getAssetLists } = require('@chain-registry/utils'); +const { assets, chains, ibc } = require('chain-registry'); +const { writeFileSync } = require('fs'); const chainName = 'juno'; diff --git a/packages/osmosis/.eslintrc.json b/packages/osmosis/.eslintrc.json index 04afd5d7b..b61122721 100644 --- a/packages/osmosis/.eslintrc.json +++ b/packages/osmosis/.eslintrc.json @@ -25,6 +25,7 @@ "jest": true }, "rules": { + "@typescript-eslint/no-var-requires": 0, // "react-hooks/rules-of-hooks": 2, // "react-hooks/exhaustive-deps": 1, "simple-import-sort/imports": 2, diff --git a/packages/osmosis/scripts/build.js b/packages/osmosis/scripts/build.js index 4b140ed20..a6b496525 100644 --- a/packages/osmosis/scripts/build.js +++ b/packages/osmosis/scripts/build.js @@ -1,6 +1,6 @@ -import { getAssetLists } from '@chain-registry/utils'; -import { assets, chains, ibc } from 'chain-registry'; -import { writeFileSync } from 'fs'; +const { getAssetLists } = require('@chain-registry/utils'); +const { assets, chains, ibc } = require('chain-registry'); +const { writeFileSync } = require('fs'); const chainName = 'osmosis';