-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
8 changed files
with
163 additions
and
222 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
$schema: https://json.schemastore.org/lefthook.json | ||
|
||
pre-commit: | ||
parallel: true | ||
skip: | ||
- merge | ||
- rebase | ||
commands: | ||
markdownlint: | ||
tags: frontend style | ||
glob: "*.md" | ||
run: yarn run markdownlint --fix {staged_files} || true | ||
stage_fixed: true | ||
prettier: | ||
tags: frontend style | ||
glob: "*.{cjs,css,js,json,md,mdx,mjs,scss,ts,tsx,yml}" | ||
run: yarn run prettier --write {staged_files} || true | ||
stage_fixed: true | ||
yarn: | ||
tags: frontend style | ||
glob: "{*/package.json, package.json}" | ||
run: yarn fix:constraints && yarn fix:yarn-deduplicate | ||
stage_fixed: true | ||
sqlfluff: | ||
tags: backend style | ||
glob: "*.sql" | ||
run: sqlfluff fix {staged_files} || true | ||
stage_fixed: true | ||
rust: | ||
tags: backend style | ||
glob: "*.rs" | ||
run: cargo fmt -- {staged_files} || true | ||
stage_fixed: true | ||
toml: | ||
tags: backend style | ||
glob: "*.toml" | ||
run: yarn run taplo format {staged_files} || true | ||
stage_fixed: true |
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
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
Oops, something went wrong.