Skip to content

Commit

Permalink
"standard"ify configs
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffinPX committed Jan 23, 2024
1 parent b624dcf commit a1d57af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"lib": [ "DOM", "DOM.Iterable", "ESNext" ],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
Expand All @@ -17,9 +17,9 @@
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
"@/*": [ "src/*" ]
}
},
"include": ["src"],
"include": [ "src" ],
"references": [{ "path": "./tsconfig.node.json" }]
}
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"resolveJsonModule": true,
"target": "ESNext"
},
"include": ["vite.config.ts"]
"include": [ "vite.config.ts" ]
}
26 changes: 12 additions & 14 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@ const manifest: ManifestV3Export = {
action: {
default_popup: "index.html"
},
/*background: {
service_worker: "src/controller/Background.ts",
type: "module"
},*/
content_scripts: [
{
matches: ["<all_urls>"],
js: ["src/provider/inject.ts"],
run_at: "document_start"
}
],
permissions: ["storage", "alarms"],
background: {
service_worker: "src/wallet/index.ts",
type: "module"
},
content_scripts: [{
matches: [ "<all_urls>" ],
js: [ "src/provider/inject.ts" ],
run_at: "document_start"
}],
permissions: [ "storage", "alarms", "notifications" ],
// this is an ID for firefox, but the `ManifestV3Export` type doesn't have it
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Expand All @@ -39,15 +37,15 @@ const manifest: ManifestV3Export = {

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), crx({ manifest })],
plugins: [ react(), crx({ manifest }) ],
resolve: {
alias: {
"@": path.resolve(__dirname, "src")
}
},
css: {
postcss: {
plugins: [tailwindcss]
plugins: [ tailwindcss ]
}
},
server: {
Expand Down

0 comments on commit a1d57af

Please sign in to comment.