Skip to content

Commit

Permalink
Merge pull request #1 from bmschwartz/dev
Browse files Browse the repository at this point in the history
Gets environment set up for Vercel deployment
  • Loading branch information
bmschwartz authored Aug 11, 2024
2 parents c31b79d + 124e46c commit 841f800
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 14,930 deletions.
14 changes: 11 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,26 @@
},
"overrides": [
{
"files": "**/*.+(ts|tsx)",
"files": ["**/*.+(ts|tsx)"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-use-before-define": [0],
"@typescript-eslint/no-use-before-define": [1],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off"
}
},
{
// Exclude files from being linted
"files": ["src/graphql/client/**"],
"excludedFiles": ["src/graphql/client/**"],
"rules": {
// You can add rules to override here if needed
}
}
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# JetBrains IDE files
.idea/

.graphclientrc.yml
src/graphql/client

# testing
/coverage

Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions .graphclientrc.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sources:
- name: fixmypic
handler:
graphql:
endpoint: https://api.studio.thegraph.com/query/84465/fixmypic/version/latest

documents:
- ./src/graphql/**/*.graphql
1 change: 0 additions & 1 deletion contracts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import '@matterlabs/hardhat-zksync-verify/dist/src/type-extensions';
dotenv.config();

export const getProvider = () => {
// @ts-expect-error URL is not defined in the HardhatNetworkConfig
const rpcUrl = hre.network.config.url;
if (!rpcUrl)
throw `⛔️ RPC URL wasn't found in "${hre.network.name}"! Please add a "url" field to the network config in hardhat.config.ts`;
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"start": "next start",
"type-check": "tsc --noEmit",
"compile": "hardhat compile && hardhat copy-artifacts",
"compile-gql-dev": "cp .graphclientrc.dev.yml .graphclientrc.yml && pnpm run compile-gql",
"compile-gql-test": "cp .graphclientrc.test.yml .graphclientrc.yml && pnpm run compile-gql",
"compile-gql-prod": "cp .graphclientrc.prod.yml .graphclientrc.yml && pnpm run compile-gql",
"compile-gql": "rm -rf src/graphql/client/* && graphclient build && mv .graphclient/* src/graphql/client/",
"lint": "eslint --ignore-pattern \"src/graphql/**\" --ignore-path .gitignore \"src/**/*.+(ts|js|tsx)\"",
"format": "prettier --ignore-path .prettierignore --ignore-path .gitignore \"src/**/*.+(ts|js|tsx)\" --write",
Expand All @@ -29,6 +32,7 @@
"prettier --ignore-path .gitignore --write"
]
},
"eslintIgnore": ["src/graphql/client"],
"dependencies": {
"@chainlink/contracts": "1.2.0",
"@fontsource/roboto": "5.0.13",
Expand Down
Loading

0 comments on commit 841f800

Please sign in to comment.