Skip to content

Commit 2fb4df5

Browse files
committed
meta: ignore AI assistants files
Ignore CLAUDE.md and AGENTS.md in .gitignore, and exclude them from markdown and ESLint linting.
1 parent 449a93a commit 2fb4df5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ cmake_install.cmake
160160
install_manifest.txt
161161
*.cbp
162162

163+
# === Rules for AI assistants ===
164+
CLAUDE.md
165+
AGENTS.md
166+
163167
# === Global Rules ===
164168
# Keep last to avoid being excluded
165169
*.pyc

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ else
14031403
LINT_MD_NEWER = -newer tools/.mdlintstamp
14041404
endif
14051405

1406-
LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(wildcard *.md)
1406+
LINT_MD_TARGETS = doc src lib benchmark test tools/doc tools/icu $(filter-out CLAUDE.md AGENTS.md,$(wildcard *.md))
14071407
LINT_MD_FILES = $(shell $(FIND) $(LINT_MD_TARGETS) -type f \
14081408
! -path '*node_modules*' ! -path 'test/fixtures/*' -name '*.md' \
14091409
$(LINT_MD_NEWER))

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ export default [
394394
// #region markdown config
395395
{
396396
files: ['**/*.md'],
397+
ignores: ['CLAUDE.md', 'AGENTS.md'],
397398
plugins: {
398399
markdown,
399400
},

0 commit comments

Comments
 (0)