mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-06 19:11:09 +08:00
* feat: migrate from husky to prek for git hooks Replace husky + lint-staged with prek (pre-commit re-engineered in Rust) for faster and more efficient git hooks management. Changes: - Add @j178/prek dependency - Create .pre-commit-config.yaml with equivalent hooks - Update prepare script to use prek install - Remove husky, lint-staged dependencies and configuration - Remove .husky directory Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * build: add @j178/prek to onlyBuiltDependencies --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: icarus <eurfelux@gmail.com>
23 lines
701 B
YAML
23 lines
701 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: biome-format-js
|
|
name: Biome format (JS/TS)
|
|
language: system
|
|
entry: pnpm biome format --write --no-errors-on-unmatched
|
|
files: '\.(js|jsx|ts|tsx|cjs|mjs|cts|mts)$'
|
|
pass_filenames: true
|
|
|
|
- id: eslint-fix
|
|
name: ESLint fix
|
|
language: system
|
|
entry: pnpm eslint --fix
|
|
files: '\.(js|jsx|ts|tsx|cjs|mjs|cts|mts)$'
|
|
pass_filenames: true
|
|
|
|
- id: biome-format-other
|
|
name: Biome format (JSON/YAML/CSS/HTML)
|
|
language: system
|
|
entry: pnpm biome format --write --no-errors-on-unmatched
|
|
files: '\.(json|yml|yaml|css|html)$'
|
|
pass_filenames: true |