-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added Commitlint configuration for Yarn
ISSUES CLOSED: #13
- Loading branch information
1 parent
d4979cb
commit 934e180
Showing
3 changed files
with
3 additions
and
7 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import type { PackageManager } from '@/types/package-manger' | ||
|
||
// TODO: Add configuration for yarn | ||
export const COMMITLINT_CONFIG: Record<PackageManager, string> = { | ||
npm: 'npx --no -- commitlint --edit $1', | ||
pnpm: 'pnpm dlx commitlint --edit $1', | ||
yarn: '', | ||
yarn: 'yarn dlx commitlint --edit $1', | ||
bun: 'bunx commitlint --edit $1' | ||
} |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import type { PackageManager } from '@/types/package-manger' | ||
|
||
// TODO: Add configuration for yarn | ||
export const LINT_STAGED_CONFIG: Record<PackageManager, string> = { | ||
npm: 'npx lint-staged', | ||
pnpm: 'pnpm dlx lint-staged', | ||
yarn: '', | ||
yarn: 'yarn dlx lint-staged', | ||
bun: 'bunx lint-staged' | ||
} |
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