Skip to content

Commit

Permalink
feat(setup): add lint-staged, simple-git-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kettei-sproutty committed Nov 12, 2023
1 parent f22421d commit d702a06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@
"eslint": "^8.53.0",
"lint-staged": "^15.1.0",
"prettier": "^3.0.3",
"simple-git-hooks": "^2.9.0",
"typescript": "^5.2.2"
},
"simple-git-hooks": {
"pre-commit": [
"bun lint-staged"
]
},
"lint-staged": {
"*.{ts,cjs,mjs}": [
"prettier --write --",
Expand All @@ -23,6 +29,9 @@
],
"*.rs": [
"cargo fmt --"
],
"*.json": [
"prettier --write --"
]
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ use napi_derive::napi;
#[napi]
pub fn plus_100(input: u32) -> u32 {
input + 100
}
}

0 comments on commit d702a06

Please sign in to comment.