Skip to content

Commit

Permalink
fix: update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
iykazrji committed Jan 7, 2025
1 parent 0154e73 commit 2662e0f
Show file tree
Hide file tree
Showing 14 changed files with 579 additions and 14 deletions.
28 changes: 14 additions & 14 deletions account-kit/rn-signer/example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@ const repoRoot = path.resolve(__dirname, "../../..");
const config = getDefaultConfig(projectRoot);

const monorepoPackages = {
"@account-kit/signer": path.resolve(repoRoot, "account-kit/signer"),
"@aa-sdk/core": path.resolve(repoRoot, "aa-sdk/core"),
"@account-kit/logging": path.resolve(repoRoot, "account-kit/logging"),
"@account-kit/signer": path.resolve(repoRoot, "account-kit/signer"),
"@aa-sdk/core": path.resolve(repoRoot, "aa-sdk/core"),
"@account-kit/logging": path.resolve(repoRoot, "account-kit/logging"),
};

config.watchFolders = [
projectRoot,
rnSignerRoot,
...Object.values(monorepoPackages),
projectRoot,
rnSignerRoot,
...Object.values(monorepoPackages),
];

// Let Metro know where to resolve packages and in what order
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, "node_modules"),
path.resolve(rnSignerRoot, "node_modules"),
path.resolve(repoRoot, "node_modules"),
path.resolve(projectRoot, "node_modules"),
path.resolve(rnSignerRoot, "node_modules"),
path.resolve(repoRoot, "node_modules"),
];

// Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
config.resolver.disableHierarchicalLookup = true;

config.resolver.extraNodeModules = {
...config.resolver.extraNodeModules,
...require("node-libs-react-native"),
...monorepoPackages,
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
...config.resolver.extraNodeModules,
...require("node-libs-react-native"),
...monorepoPackages,
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
};

/**
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2662e0f

Please sign in to comment.