mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-13 05:20:28 +08:00
* chore(deps): update dependency @eslint-react/eslint-plugin to v3 * chore: remove deprecated rules * chore: remove eslint from pre-push * chore: update lint-staged config --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Slinetrac <realakayuki@gmail.com>
74 lines
1.5 KiB
TOML
74 lines
1.5 KiB
TOML
[config]
|
|
skip_core_tasks = true
|
|
skip_git_env_info = true
|
|
skip_rust_env_info = true
|
|
skip_crate_env_info = true
|
|
|
|
# --- Backend ---
|
|
|
|
[tasks.rust-format]
|
|
install_crate = "rustfmt"
|
|
command = "cargo"
|
|
args = ["fmt", "--", "--emit=files"]
|
|
|
|
[tasks.rust-clippy]
|
|
description = "Run cargo clippy to lint the code"
|
|
command = "cargo"
|
|
args = ["clippy", "--all-targets", "--all-features", "--", "-D", "warnings"]
|
|
|
|
# --- Frontend ---
|
|
|
|
[tasks.typecheck]
|
|
description = "Run type checks"
|
|
command = "pnpm"
|
|
args = ["typecheck"]
|
|
[tasks.typecheck.windows]
|
|
command = "pnpm.cmd"
|
|
|
|
[tasks.lint-staged]
|
|
description = "Run lint-staged for staged files"
|
|
command = "pnpm"
|
|
args = ["exec", "lint-staged"]
|
|
[tasks.lint-staged.windows]
|
|
command = "pnpm.cmd"
|
|
|
|
[tasks.i18n-format]
|
|
description = "Format i18n keys"
|
|
command = "pnpm"
|
|
args = ["i18n:format"]
|
|
[tasks.i18n-format.windows]
|
|
command = "pnpm.cmd"
|
|
|
|
[tasks.i18n-types]
|
|
description = "Generate i18n key types"
|
|
command = "pnpm"
|
|
args = ["i18n:types"]
|
|
[tasks.i18n-types.windows]
|
|
command = "pnpm.cmd"
|
|
|
|
[tasks.git-add]
|
|
description = "Add changed files to git"
|
|
command = "git"
|
|
args = [
|
|
"add",
|
|
"src/locales",
|
|
"crates/clash-verge-i18n/locales",
|
|
"src/types/generated",
|
|
]
|
|
|
|
# --- Jobs ---
|
|
|
|
[tasks.frontend-format]
|
|
description = "Frontend format checks"
|
|
dependencies = ["i18n-format", "i18n-types", "git-add", "lint-staged"]
|
|
|
|
# --- Git Hooks ---
|
|
|
|
[tasks.pre-commit]
|
|
description = "Pre-commit checks: format only"
|
|
dependencies = ["rust-format", "frontend-format"]
|
|
|
|
[tasks.pre-push]
|
|
description = "Pre-push checks: lint and typecheck"
|
|
dependencies = ["rust-clippy", "typecheck"]
|