Skip to content

The agent that grows with you

fix(ci): eslint ignores *.generated.ts; restore the contract file's header

teknium175b083e93991
diff --git a/apps/shared/src/gateway-contract.generated.ts b/apps/shared/src/gateway-contract.generated.ts
index d85544c1bcf..e8f793ee7cb 100644
--- a/apps/shared/src/gateway-contract.generated.ts
+++ b/apps/shared/src/gateway-contract.generated.ts
@@ -1,7 +1,7 @@
// GENERATED by scripts/gen_gateway_contracts.py from tui_gateway/contracts — DO NOT EDIT.
// Regenerate: .venv/bin/python scripts/gen_gateway_contracts.py
// tests/tui_gateway/contracts/test_generated.py fails when this file is stale.
-
+/* eslint-disable */
// ── Types ──
/** Any method the desktop may route to a named profile (``requestGatewayForProfile`` adds ``profile``). */
export interface ProfileParams {
diff --git a/eslint.config.shared.mjs b/eslint.config.shared.mjs
index 5e0f2c8503a..827f2fcbb6f 100644
--- a/eslint.config.shared.mjs
+++ b/eslint.config.shared.mjs
@@ -20,7 +20,9 @@ import globals from 'globals'
export default [
{
- ignores: ['**/node_modules/**', '**/dist/**', 'src/**/*.js', '**/package-lock.json']
+ // *.generated.ts is written by scripts/gen_gateway_contracts.py; the on-merge `npm run fix` bot
+ // must not rewrite it (it stripped the file's own eslint-disable header and left the tree stale).
+ ignores: ['**/node_modules/**', '**/dist/**', 'src/**/*.js', '**/package-lock.json', '**/*.generated.ts']
},
js.configs.recommended,
{