Skip to content

Commit 9091398

Browse files
mcollinaaduh95
authored andcommitted
meta: ignore AI assistants files
Ignore CLAUDE.md and AGENTS.md in .gitignore, and exclude them from markdown and ESLint linting. Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: #62612 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent be241ba commit 9091398

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.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
@@ -1448,7 +1448,7 @@ else
14481448
LINT_MD_NEWER = -newer tools/.mdlintstamp
14491449
endif
14501450

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

eslint.config.mjs

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

0 commit comments

Comments
 (0)