diff --git a/.gitignore b/.gitignore index d283bce868da6c..0b8f1a405bda3a 100644 --- a/.gitignore +++ b/.gitignore @@ -160,6 +160,10 @@ cmake_install.cmake install_manifest.txt *.cbp +# === Rules for AI assistants === +CLAUDE.md +AGENTS.md + # === Global Rules === # Keep last to avoid being excluded *.pyc diff --git a/Makefile b/Makefile index fb4a43bfed7864..87a3ef3e95662a 100644 --- a/Makefile +++ b/Makefile @@ -1442,7 +1442,7 @@ else LINT_MD_NEWER = -newer tools/.mdlintstamp endif -LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(wildcard *.md) +LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(filter-out CLAUDE.md AGENTS.md,$(wildcard *.md)) LINT_MD_FILES = $(shell $(FIND) $(LINT_MD_TARGETS) -type f \ ! -path '*node_modules*' ! -path 'test/fixtures/*' -name '*.md' \ $(LINT_MD_NEWER)) diff --git a/eslint.config.mjs b/eslint.config.mjs index 74dd82aa1ec7cb..152c530825e273 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -395,6 +395,7 @@ export default [ // #region markdown config { files: ['**/*.md'], + ignores: ['CLAUDE.md', 'AGENTS.md'], plugins: { markdown, },