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 231bbe11f4c011..a7a899db731edd 100644 --- a/Makefile +++ b/Makefile @@ -1403,7 +1403,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 86cbf2b56dd668..1286fa0c46ad4e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -394,6 +394,7 @@ export default [ // #region markdown config { files: ['**/*.md'], + ignores: ['CLAUDE.md', 'AGENTS.md'], plugins: { markdown, },