Skip to content

Commit

Permalink
Update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
ioay committed Jan 11, 2024
1 parent 5916950 commit 5e9248b
Show file tree
Hide file tree
Showing 5 changed files with 211 additions and 8 deletions.
10 changes: 10 additions & 0 deletions dapp/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@
{ "allowRequiredDefaults": true }
],
"react/require-default-props": [0]
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["~", "./src"]
],
"extensions": [".js", ".jsx",".ts", ".tsx"]
}
}
}
}
6 changes: 5 additions & 1 deletion dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@
"@typescript-eslint/parser": "^6.12.0",
"@vitejs/plugin-react": "^4.2.0",
"eslint": "^8.54.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.1.0",
"typescript": "^5.3.2",
"vite": "^5.0.2",
"vite-plugin-node-polyfills": "^0.19.0"
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-node-polyfills": "^0.19.0",
"vite-tsconfig-paths": "^4.2.3"
}
}
7 changes: 5 additions & 2 deletions dapp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"strict": true
"strict": true,
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
}
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
10 changes: 9 additions & 1 deletion dapp/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import { nodePolyfills } from "vite-plugin-node-polyfills"
import eslint from "vite-plugin-eslint"

import { resolve } from "path"

export default defineConfig({
plugins: [nodePolyfills(), react()],
resolve: {
alias: {
"~": resolve(__dirname, "./src"),
},
},
plugins: [nodePolyfills(), react(), eslint()],
})
186 changes: 182 additions & 4 deletions pnpm-lock.yaml

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

0 comments on commit 5e9248b

Please sign in to comment.