mirror of
https://github.com/OpenListTeam/OpenList-Desktop.git
synced 2025-11-24 19:12:59 +08:00
* feat: add save_settings_with_update_port command and update related components * refactor: remove state parameter from API key retrieval and update related functions * feat: enhance release workflow with tag validation and improve build scripts * feat: update release workflow to use version input from auto-version workflow * 📦 Chore(custom): add Clippy configuration for consistent linting across platforms * chore: add Clippy configuration for consistent linting across platforms * 🐛 Fix(custom): fix ci * 🚧 WIP(custom): fix clippy error * 🐛 Fix(custom): add default openlist and rclone version * 🚧 WIP(custom): fix clippy errors * 🚧 WIP(custom): fix clippy errors * 🐛 Fix(custom): fix ci bugs
26 lines
673 B
YAML
26 lines
673 B
YAML
# Pre-commit hook configuration
|
|
# Install with: yarn add -D husky lint-staged
|
|
# Then run: npx husky install
|
|
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: frontend-lint
|
|
name: Frontend Lint
|
|
entry: yarn lint:fix
|
|
language: system
|
|
files: \.(ts|vue|js)$
|
|
|
|
- id: rust-fmt
|
|
name: Rust Format
|
|
entry: bash -c 'cd src-tauri && cargo fmt --all'
|
|
language: system
|
|
files: \.rs$
|
|
|
|
- id: rust-clippy
|
|
name: Rust Clippy
|
|
entry: bash -c 'cd src-tauri && cargo clippy --all-targets --all-features -- -D warnings'
|
|
language: system
|
|
files: \.rs$
|
|
pass_filenames: false
|