Skip to content

Commit 5e652dc

Browse files
author
Mike Valeriano
committed
chore: setup lint-staged
1 parent e2f8367 commit 5e652dc

7 files changed

Lines changed: 560 additions & 17 deletions

File tree

.commitlintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
npm run biome-check -- --staged
1+
lint-staged

.husky/pre-push

Lines changed: 0 additions & 3 deletions
This file was deleted.

commitlint.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// biome-ignore lint/correctness/noUndeclaredDependencies: bundled with the cli
2+
import type { UserConfig } from "@commitlint/types";
3+
4+
export default {
5+
extends: ["@commitlint/config-conventional"],
6+
} satisfies UserConfig;

lint-staged.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { Configuration } from "lint-staged";
2+
3+
export default {
4+
"*.{ts,tsx}": ["tsc-files", "biome check --no-errors-on-unmatched", "vitest related"],
5+
"*.{json,jsonc}": ["biome check --no-errors-on-unmatched"],
6+
} satisfies Configuration;

0 commit comments

Comments
 (0)