Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lint + lodash #8

Merged
merged 11 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"plugins": ["react"],
"plugins": ["react", "prettier"],
"rules": {
"semi": "error",
"no-multiple-empty-lines": "error",
Expand All @@ -27,6 +27,7 @@
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "warn",
"prettier/prettier": "error",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
},
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build
on: [push]
jobs:
library:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build Library
run: npm run build:library
# storybook:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Install dependencies
# run: npm install
# - name: Build Storybook
# run: npm run build:storybook
12 changes: 12 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
36 changes: 0 additions & 36 deletions .github/workflows/linter.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-lock.json
node_modules
storybook-static
16 changes: 9 additions & 7 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ import React from "react";
import { Preview } from "@storybook/react";

const preview: Preview = {
decorators: [
(Story) => (
<GoldRushProvider apikey={import.meta.env.STORYBOOK_COVALENT_API_KEY}>
<Story />
</GoldRushProvider>
),
],
decorators: [
(Story) => (
<GoldRushProvider
apikey={import.meta.env.STORYBOOK_COVALENT_API_KEY}
>
<Story />
</GoldRushProvider>
),
],
};

export default preview;
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div align="center">
<a href="https://www.covalenthq.com/products/goldrush/" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/covalenthq/goldrush-kit/main/goldrush-kit-logo.png">
<img alt="GoldRush Kit Logo" src="https://raw.githubusercontent.com/covalenthq/goldrush-kit/main/goldrush-kit-logo.png" width="280"/>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/covalenthq/goldrush-kit/main/src/static/goldrush-kit-logo.png">
<img alt="GoldRush Kit Logo" src="https://raw.githubusercontent.com/covalenthq/goldrush-kit/main/src/static/goldrush-kit-logo.png" width="280"/>
</picture>
</a>
</div>
Expand Down Expand Up @@ -87,9 +87,13 @@ Here's a full example to get you started. If you're using `next.js` versions `^1
Be sure to secure your key to prevent unauthorized use in the Covalent platform by restricting usage to specific URLs.

```tsx
// 'use client';
// 'use client';
// If using Next.js, put your API key in a .env.local file
<GoldRushProvider apikey={process.env.NEXT_PUBLIC_API_KEY} mode="dark" color="emerald">
<GoldRushProvider
apikey={process.env.NEXT_PUBLIC_API_KEY}
mode="dark"
color="emerald"
>
<TokenBalancesListView
chain_names={[
"eth-mainnet",
Expand All @@ -109,25 +113,24 @@ Be sure to secure your key to prevent unauthorized use in the Covalent platform
<AddressActivityListView address="0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de" />
<NFTWalletTokenListView
address="0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de"
chain_names={[
"eth-mainnet",
"matic-mainnet",
"bsc-mainnet",
"avalanche-mainnet",
"optimism-mainnet",
]}
chain_names={[
"eth-mainnet",
"matic-mainnet",
"bsc-mainnet",
"avalanche-mainnet",
"optimism-mainnet",
]}
/>
</GoldRushProvider>
```

## GoldRush Templates

|Template|Description|Link|
|---|---|---|
|Wallet & Portfolio UI|Display your tokens and NFTs across multiple chains.|https://github.com/covalenthq/goldrush-wallet-portfolio-ui|
|NFT Collection Gallery & Analytics UI|Coming soon!||
|Uniswap-like Analytics UI|Coming soon!||

| Template | Description | Link |
| ------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------- |
| Wallet & Portfolio UI | Display your tokens and NFTs across multiple chains. | https://github.com/covalenthq/goldrush-wallet-portfolio-ui |
| NFT Collection Gallery & Analytics UI | Coming soon! | |
| Uniswap-like Analytics UI | Coming soon! | |

## Build and customize with Storybook

Expand Down Expand Up @@ -170,9 +173,6 @@ Feel free to check <a href="https://github.com/covalenthq/goldrush-kit/issues">i

Give a ⭐️ if this project helped you!



## 📝 License

This project is <a href="https://github.com/covalenthq/goldrush-kit/blob/main/LICENSE">Apache 2.0</a> licensed.

Loading