Skip to content

Commit

Permalink
fix: add husky/better prettier configuration/fix menumods for gamepla…
Browse files Browse the repository at this point in the history
…y in api result
  • Loading branch information
KotRikD committed Mar 29, 2023
1 parent 118974e commit 13acf77
Show file tree
Hide file tree
Showing 29 changed files with 2,759 additions and 2,251 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"printWidth": 90,
"printWidth": 80,
"tabWidth": 4,
"useTabs": true,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
Expand Down
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"bin": "dist/index.js",
"license": "GPL-3.0",
"scripts": {
"prepare": "husky install",
"ts:run": "ts-node --transpile-only -r tsconfig-paths/register --project tsconfig.json",
"ts:compile": "ncc build src/index.ts -o dist -m -d",
"run:dev": "yarn ts:run src/index.ts",
Expand Down Expand Up @@ -51,10 +52,18 @@
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
"@types/koa__router": "^12.0.0",
"@types/node": "^18.14.6",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"prettier": "^2.8.5",
"tsconfig-paths": "^3.14.2",
"typescript": "^4.9.5"
},
"lint-staged": {
"**/*.{js,ts}": [
"yarn prettier:fix",
"git add ."
]
},
"homepage": "https://github.com/KotRikD/osumemory-ts#readme",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 13acf77

Please sign in to comment.