Skip to content

Commit

Permalink
chore: contracts config, wagmi-cli config, autogenerate readContract …
Browse files Browse the repository at this point in the history
…hooks with suspense
  • Loading branch information
luchobonatti committed Jul 5, 2024
1 parent 3be1bf6 commit 627e7ce
Show file tree
Hide file tree
Showing 10 changed files with 7,648 additions and 2,312 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
ignorePatterns: ['dist', '.eslintrc.cjs', '**/*.css', '**/*.scss', '**/*.html'],
ignorePatterns: [
'dist',
'.eslintrc.cjs',
'**/*.css',
'**/*.scss',
'**/*.html',
'src/hooks/generated.ts',
],
settings: {
react: {
version: 'detect',
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ dist-ssr
.env

coverage

src/hooks/generated.ts
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Ignore artifacts:
build
coverage
src/routeTree.gen.ts
src/routeTree.gen.ts
src/hooks/generated.ts
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"type-check": "bash -c tsc --noEmit"
"type-check": "bash -c tsc --noEmit",
"wagmi-generate": "wagmi generate --config src/lib/wagmi/config.ts",
"postinstall": "pnpm wagmi-generate"
},
"lint-staged": {
"src/**/*.{js,ts,jsx,tsx}": [
Expand Down Expand Up @@ -69,6 +71,8 @@
"@typescript-eslint/parser": "^7.9.0",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-v8": "^1.6.0",
"@wagmi/cli": "^2.1.13",
"change-case": "^5.4.4",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down
Loading

0 comments on commit 627e7ce

Please sign in to comment.