Skip to content

Commit

Permalink
chore: setup commit hooks with lint-staged (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Oct 18, 2022
1 parent cf39138 commit 817b4a5
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 0 deletions.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@
},
"bin": "./dist/cli.js",
"scripts": {
"prepare": "pnpm simple-git-hooks",
"build": "pkgroll --target=node12.19 --minify",
"lint": "eslint --cache .",
"type-check": "tsc --noEmit",
"test": "pnpm build && node ./dist/cli.js tests/index.ts",
"prepack": "pnpm build && clean-pkg-json"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*.{js,ts,mjs,mts,cjs,cts,json}": "pnpm lint"
},
"dependencies": {
"@esbuild-kit/cjs-loader": "^2.4.0",
"@esbuild-kit/core-utils": "^3.0.0",
Expand All @@ -60,10 +67,12 @@
"fs-fixture": "^1.1.0",
"get-node": "^13.2.0",
"kolorist": "^1.6.0",
"lint-staged": "^13.0.3",
"manten": "^0.3.0",
"node-pty": "^0.10.1",
"pkgroll": "^1.4.0",
"semver": "^7.3.8",
"simple-git-hooks": "^2.8.1",
"strip-ansi": "^7.0.1",
"type-flag": "^2.2.0",
"typescript": "^4.8.4"
Expand Down

0 comments on commit 817b4a5

Please sign in to comment.