Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
yuimarudev committed Jan 21, 2024
0 parents commit cc7f41e
Show file tree
Hide file tree
Showing 12 changed files with 1,482 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.env
11 changes: 11 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript"
},
"target": "esnext"
},
"minify": true,
"sourceMaps": true
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.defaultFormatter": "biomejs.biome-nightly",
"editor.formatOnSave": true,

"[typescript]": {
"editor.defaultFormatter": "biomejs.biome-nightly"
}
}
23 changes: 23 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.2/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"indentStyle": "space"
},
"linter": {
"enabled": true,
"rules": {
"complexity": {
"useLiteralKeys": "off"
},
"recommended": true
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
5 changes: 5 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "ohno-rewrite",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "swc src --out-dir dist && node --enable-source-maps dist",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "WTFPL",
"type": "module",
"devDependencies": {
"@biomejs/biome": "1.5.2",
"@discordjs/core": "^1.1.1",
"@discordjs/rest": "^2.2.0",
"@discordjs/voice": "^0.16.1",
"@discordjs/ws": "^1.0.2",
"@swc/cli": "^0.1.63",
"@swc/core": "^1.3.105",
"@tsconfig/node20": "^20.1.2",
"@tsconfig/strictest": "^2.0.2",
"@types/node": "^20.11.5",
"dotenv": "^16.3.2",
"lefthook": "^1.5.7",
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit cc7f41e

Please sign in to comment.