-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use lefthook for precommit hook
Add a precommit that helps keep code in check as we work PR: #2
- Loading branch information
1 parent
a41298e
commit d53b9d1
Showing
5 changed files
with
24 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
skip_output = ['meta', 'execution', 'empty_summary'] | ||
|
||
[pre-commit] | ||
parallel = true | ||
|
||
[pre-commit.commands.biome] | ||
glob = "*.{json,ts}" | ||
run = "node_modules/.bin/biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}" | ||
|
||
[pre-commit.commands.test] | ||
glob = "*.ts" | ||
run = "bun test" | ||
|
||
[pre-commit.commands.typos] | ||
glob = "*.{md,mdoc,mdx}" | ||
run = "typos {staged_files}" |
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 |
---|---|---|
|
@@ -39,6 +39,8 @@ are more sensitive, emailed to <[email protected]>. | |
|
||
To install Topsort.js as a contributor, you need to have Bun installed on your machine. Follow the instructions on the [Bun website](https://bun.sh/) to install it. | ||
|
||
You will also need [typos][https://github.com/crate-ci/typos] for validating documentation. Install it through your package manager (on MacOS: `brew install typos-cli`) | ||
|
||
Clone the repository and install the dependencies: | ||
|
||
```sh | ||
|
@@ -120,4 +122,4 @@ The SDK uses following configuration files: | |
`tsup.config.ts`: Configuration for the TSUP bundler. | ||
|
||
## License | ||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details. | ||
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details. |
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