fix(tooling): keep the formatter off generated files in every entry point (#615)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Gregory SchierandClaude Opus 5 authored and GitHub committed 2026-09-01 07:40:42 -07:00
1 parent 222ea9cb83
commit e63a87718c
3 files changed
+17 -5

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
**/bindings/**
**/routeTree.gen.ts
crates/yaak-templates/pkg/**
+1 -1
View File
@@ -100,7 +100,7 @@
"lint:vp": "vp lint",
"lint:workspaces": "npm run --workspaces --if-present lint",
"replace-version": "node scripts/replace-version.cjs",
"format": "vp fmt --ignore-path .oxfmtignore",
"format": "vp fmt",
"tauri": "tauri",
"client:tauri-before-build": "npm run bootstrap",
"client:tauri-before-dev": "node scripts/run-workspaces-dev.mjs apps/yaak-client",
+16 -1
View File
@@ -4,8 +4,23 @@ export default defineConfig({
staged: {
"*": "vp check --fix",
},
// Generated output, reformatted only to be undone by the next regen. Read by every formatter
// entry point, including the `staged` task above.
fmt: {
ignorePatterns: [
"**/bindings/**",
"**/routeTree.gen.ts",
"crates/yaak-templates/pkg/**",
"crates/yaak-wasm/pkg/**",
],
},
lint: {
ignorePatterns: ["npm/**", "crates/yaak-templates/pkg/**", "crates/yaak-wasm/pkg/**", "**/bindings/gen_*.ts"],
ignorePatterns: [
"npm/**",
"crates/yaak-templates/pkg/**",
"crates/yaak-wasm/pkg/**",
"**/bindings/gen_*.ts",
],
options: {
typeAware: true,
},