repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 hooks: - id: end-of-file-fixer - repo: https://github.com/cathiele/pre-commit-rust rev: v0.1.0 hooks: - id: cargo-fmt args: ["--all"] - id: cargo-clippy args: ["--all", "--all-features", "--", "-D", "warnings"] - repo: local hooks: - id: ui-menu name: ui/menu lint+fmt language: system files: ^ui/menu/ entry: sh -c "npm run --prefix ui/menu pc"