-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update fmt, vscode settings, run fmt
- Loading branch information
Showing
52 changed files
with
931 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports.biome": "explicit" | ||
}, | ||
"files.insertFinalNewline": true, | ||
"deno.enable": true, | ||
"deno.lint": true, | ||
"deno.unstable": true, | ||
"deno.config": "./deno.json", | ||
"[typescript]": { | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
}, | ||
"deno.suggest.imports.hosts": { | ||
"https://deno.land": true, | ||
"https://esm.sh": true | ||
} | ||
}, | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
type BuildMode = string | undefined; | ||
type BuildMode = string | undefined | ||
|
||
const createConfig = (mode: BuildMode) => { | ||
if (typeof mode === "undefined") { | ||
throw new Error("BUILD_MODE is not defined"); | ||
if (typeof mode === 'undefined') { | ||
throw new Error('BUILD_MODE is not defined') | ||
} | ||
if (mode === "prod") { | ||
if (mode === 'prod') { | ||
return { | ||
mode, | ||
location: new URL("https://jrson.me"), | ||
}; | ||
location: new URL('https://jrson.me'), | ||
} | ||
} | ||
return { | ||
mode, | ||
location: new URL("http://localhost"), | ||
}; | ||
}; | ||
location: new URL('http://localhost'), | ||
} | ||
} | ||
|
||
const BUILD_MODE: BuildMode = Deno.env.get("BUILD_MODE"); | ||
const BUILD_MODE: BuildMode = Deno.env.get('BUILD_MODE') | ||
|
||
export const config = createConfig(BUILD_MODE); | ||
export const config = createConfig(BUILD_MODE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ | |
} | ||
}, | ||
"fmt": { | ||
"semiColons": false, | ||
"singleQuote": true, | ||
"exclude": [ | ||
"./_site" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * as XMLFormat from "npm:[email protected]"; | ||
export * as XMLFormat from 'npm:[email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { Md5 } from "https://deno.land/[email protected]/hash/md5.ts"; | ||
export type { Message } from "https://deno.land/[email protected]/hash/md5.ts"; | ||
export { Md5 } from 'https://deno.land/[email protected]/hash/md5.ts' | ||
export type { Message } from 'https://deno.land/[email protected]/hash/md5.ts' |
Oops, something went wrong.