From 6392a88bc4c1f07284f07311829ecf14c45258d4 Mon Sep 17 00:00:00 2001 From: Mohammad Javad Naderi Date: Tue, 19 May 2026 09:33:42 +0330 Subject: [PATCH] Fix misplaced section in AGENTS.md --- AGENTS.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 34fec96cc6a..88f422124eb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -89,17 +89,6 @@ Prefer `const`. Good: -### Naming Enforcement (Read This) - -THIS RULE IS MANDATORY FOR AGENT WRITTEN CODE. - -- Use single word names by default for new locals, params, and helper functions. -- Multi-word names are allowed only when a single word would be unclear or ambiguous. -- Do not introduce new camelCase compounds when a short single-word alternative is clear. -- Before finishing edits, review touched lines and shorten newly introduced identifiers where possible. -- Good short names to prefer: `pid`, `cfg`, `err`, `opts`, `dir`, `root`, `child`, `state`, `timeout`. -- Examples to avoid unless truly required: `inputPID`, `existingClient`, `connectTimeout`, `workerPath`. - ```ts const foo = condition ? 1 : 2 ``` @@ -113,6 +102,17 @@ if (condition) foo = 1 else foo = 2 ``` +### Naming Enforcement (Read This) + +THIS RULE IS MANDATORY FOR AGENT WRITTEN CODE. + +- Use single word names by default for new locals, params, and helper functions. +- Multi-word names are allowed only when a single word would be unclear or ambiguous. +- Do not introduce new camelCase compounds when a short single-word alternative is clear. +- Before finishing edits, review touched lines and shorten newly introduced identifiers where possible. +- Good short names to prefer: `pid`, `cfg`, `err`, `opts`, `dir`, `root`, `child`, `state`, `timeout`. +- Examples to avoid unless truly required: `inputPID`, `existingClient`, `connectTimeout`, `workerPath`. + ### Avoid else statements Prefer early returns or using an `iife` to avoid else statements.