From 07ac2b7ff81414de81cebdd4b3ed1a7e962737a6 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sat, 14 Mar 2026 12:46:34 +0400 Subject: [PATCH] chore: linting --- AGENTS.md | 1 + CLAUDE.md | 1 + _typos.toml | 1 + package.json | 6 +++++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 6473718..c0f1553 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,6 +4,7 @@ - After making changes, run `pnpm format && pnpm lint && pnpm test` at the root of the project - Always run this command before finishing a task to ensure the application isn't broken +- `pnpm lint` includes spellcheck via [typos](https://github.com/crate-ci/typos). False positives can be allowlisted in `_typos.toml` ## Code Quality diff --git a/CLAUDE.md b/CLAUDE.md index b4b4a19..ec66ddd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,6 +4,7 @@ - After making changes, run `pnpm format && pnpm lint && pnpm test` at the root of the project - Always run this command before finishing a task to ensure the application isn't broken +- `pnpm lint` includes spellcheck via [typos](https://github.com/crate-ci/typos). False positives can be allowlisted in `_typos.toml` ## Code Quality diff --git a/_typos.toml b/_typos.toml index ad760e7..0286547 100644 --- a/_typos.toml +++ b/_typos.toml @@ -9,3 +9,4 @@ extend-exclude = [ [default.extend-words] DBE = "DBE" +nd = "nd" diff --git a/package.json b/package.json index e79ac17..01367bc 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,10 @@ "test:rust": "cd src-tauri && cargo test", "test:rust:unit": "cd src-tauri && cargo test --lib && cargo test --test donut_proxy_integration", "test:sync-e2e": "node scripts/sync-test-harness.mjs", - "lint": "pnpm lint:js && pnpm lint:rust", + "lint": "pnpm lint:js && pnpm lint:rust && pnpm lint:spell", "lint:js": "biome check src/ && tsc --noEmit && cd donut-sync && biome check src/ && tsc --noEmit", "lint:rust": "cd src-tauri && cargo clippy --all-targets --all-features -- -D warnings -D clippy::all && cargo fmt --all", + "lint:spell": "typos .", "tauri": "tauri", "shadcn:add": "pnpm dlx shadcn@latest add", "prepare": "husky && husky install", @@ -96,6 +97,9 @@ "bash -c 'cd src-tauri && cargo fmt --all'", "bash -c 'cd src-tauri && cargo clippy --all-targets --all-features -- -D warnings -D clippy::all'", "bash -c 'cd src-tauri && cargo test --lib'" + ], + "**/*.{rs,ts,tsx,js,jsx,md}": [ + "typos" ] } }