Commit cc7ab6293a5 for woocommerce
commit cc7ab6293a5ae57f83bd914e78901aaa0771e334
Author: Albert Juhé Lluveras <contact@albertjuhe.com>
Date: Wed Jun 17 15:43:21 2026 +0200
Update AGENTS.md to avoid agents adding more jQuery code (#65801)
* Update AGENTS.md to avoid agents adding more jQuery code
* Add changelog
* Improve rule
diff --git a/AGENTS.md b/AGENTS.md
index c578c126eb4..46f30782eae 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -74,6 +74,10 @@ plugins/woocommerce/
- Used for `@since` annotations (remove `-dev` suffix)
- When changing template files (PHP files used to display UI on the front-end) the version in their header should be updated to the current version, without the `-dev` suffix.
+**JavaScript:**
+
+- Prefer vanilla JavaScript/TypeScript over jQuery for new or modified code. Keep existing jQuery when a rewrite is out of scope.
+
## Development Workflow
1. Make code changes
diff --git a/plugins/woocommerce/changelog/update-tell-agents-not-to-write-jquery b/plugins/woocommerce/changelog/update-tell-agents-not-to-write-jquery
new file mode 100644
index 00000000000..9d4f46b3fc2
--- /dev/null
+++ b/plugins/woocommerce/changelog/update-tell-agents-not-to-write-jquery
@@ -0,0 +1,5 @@
+Significance: patch
+Type: dev
+Comment: Update AGENTS.md to avoid agents adding more jQuery code
+
+