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 4, 2024
1 parent 50a63e4 commit 5131184
Show file tree
Hide file tree
Showing 10 changed files with 875 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ module.exports = {
'plugin:eslint-plugin-jsx-a11y/recommended',
'prettier',
],
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
8 changes: 6 additions & 2 deletions 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": "wagmi-generate"
},
"lint-staged": {
"src/**/*.{js,ts,jsx,tsx}": [
Expand All @@ -44,8 +46,8 @@
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hot-toast": "^2.4.1",
"react-error-boundary": "^4.0.13",
"react-hot-toast": "^2.4.1",
"react-jazzicon": "^1.0.4",
"styled-components": "^6.1.11",
"use-debounce": "^10.0.1",
Expand All @@ -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 5131184

Please sign in to comment.