repos:
  - repo: local
    hooks:
      - id: frontend-lint
        name: ESLint
        entry: npm run lint
        language: system
        files: \.(ts|tsx)$
        pass_filenames: false

      - id: frontend-format
        name: Prettier
        entry: npx prettier --check "src/**/*.{ts,tsx,css}"
        language: system
        pass_filenames: false

      - id: frontend-types
        name: TypeScript
        entry: npx tsc --noEmit
        language: system
        pass_filenames: false

      - id: rust-fmt
        name: Cargo fmt
        entry: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
        language: system
        pass_filenames: false

      - id: rust-clippy
        name: Cargo clippy
        entry: cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings
        language: system
        pass_filenames: false
